use of org.eclipse.reddeer.swt.impl.button.CancelButton in project jbosstools-openshift by jbosstools.
the class HandleCustomTemplateTest method assertTemplateIsUsableInApplicationWizard.
private void assertTemplateIsUsableInApplicationWizard() {
new NewOpenShift3ApplicationWizard(connectionReq.getConnection()).openWizardFromExplorer();
try {
new DefaultTreeItem("helloworld-sample (instant-app) - " + DatastoreOS3.PROJECT1);
} catch (RedDeerException ex) {
fail("Template is not visible in New OpenShift application wizard although it should be.");
}
new CancelButton().click();
new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.NEW_APP_WIZARD));
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
}
use of org.eclipse.reddeer.swt.impl.button.CancelButton in project jbosstools-openshift by jbosstools.
the class CDKServerEditorAbstractTest method addCDKServer.
public void addCDKServer() {
NewCDKServerWizard dialog = CDKTestUtils.openNewServerWizardDialog();
try {
setupServerWizardPage(dialog);
new WaitUntil(new ControlIsEnabled(new FinishButton()), TimePeriod.MEDIUM, false);
dialog.finish(TimePeriod.MEDIUM);
} catch (RedDeerException coreExc) {
new CancelButton().click();
throw new CDKServerException("Exception occured in CDK server wizard, wizard was canceled", coreExc);
}
}
use of org.eclipse.reddeer.swt.impl.button.CancelButton in project jbosstools-openshift by jbosstools.
the class TemplateParametersTest method closeNewApplicationWizard.
@After
public void closeNewApplicationWizard() {
new CancelButton().click();
new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.NEW_APP_WIZARD), TimePeriod.LONG);
new WaitWhile(new JobIsRunning());
}
use of org.eclipse.reddeer.swt.impl.button.CancelButton in project jbosstools-openshift by jbosstools.
the class CreateApplicationOnBuilderImageTest method validateJBIDE22704.
private void validateJBIDE22704() {
BuilderImageApplicationWizardHandlingTest.nextToBuildConfigurationWizardPage();
applicationName = new LabeledText("Name: ").getText();
assertNotNull(applicationName);
assertTrue(applicationName.length() > 0);
String gitUrl = new LabeledText("Git Repository URL:").getText();
assertNotNull(gitUrl);
if (gitUrl.length() < 1) {
new CancelButton().click();
new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.NEW_APP_WIZARD));
throw new OpenshiftTestInFailureException("JBIDE-23704 should be fixed now.");
}
new WaitUntil(new ControlIsEnabled(new NextButton()));
/*
* switch to the Deployment page
*/
new NextButton().click();
new WaitUntil(new ControlIsEnabled(new BackButton()));
int numberofEnvironmentVariables = new DefaultTable().rowCount();
assertTrue(numberofEnvironmentVariables > 0);
/*
* switch to the Routing page
*/
new NextButton().click();
new WaitUntil(new ControlIsEnabled(new BackButton()));
int numberOfServicePorts = new DefaultTable().rowCount();
assertTrue(numberOfServicePorts > 0);
new CancelButton().click();
new WaitWhile(new JobIsRunning(), TimePeriod.getCustom(120));
}
use of org.eclipse.reddeer.swt.impl.button.CancelButton in project jbosstools-openshift by jbosstools.
the class CredentialsWizardPage method cancelAddingUser.
public void cancelAddingUser() {
try {
Button cancel = new CancelButton();
cancel.click();
} catch (CoreLayerException exc) {
throw new CoreLayerException("Canceling setting the credentials was not successful");
}
}
Aggregations