use of org.eclipse.reddeer.swt.impl.button.OkButton in project jbosstools-openshift by jbosstools.
the class RemoveConnectionTest method testRemoveConnection.
@Test
public void testRemoveConnection() {
explorer.open();
explorer.getOpenShift3Connection(connectionReq.getConnection()).select();
new ContextMenuItem(OpenShiftLabel.ContextMenu.DELETE_CONNECTION).select();
new DefaultShell(OpenShiftLabel.Shell.REMOVE_CONNECTION);
new OkButton().click();
new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.REMOVE_CONNECTION), TimePeriod.LONG);
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
assertFalse("Connection is still presented in OpenShift explorer", explorer.connectionExists(connectionReq.getConnection().getUsername(), DatastoreOS3.SERVER));
}
use of org.eclipse.reddeer.swt.impl.button.OkButton in project jbosstools-openshift by jbosstools.
the class StoreConnectionTest method secureStorageDisabledJBIDE19604Test.
@Test
public void secureStorageDisabledJBIDE19604Test() {
deleteSecureStorage();
invokeNewAppWizardFromCentral();
new CheckBox(OpenShiftLabel.TextLabels.STORE_PASSWORD).toggle(true);
new NextButton().click();
// Cancel secure storage shell
try {
new DefaultShell(OpenShiftLabel.Shell.SECURE_STORAGE_PASSWORD);
} catch (CoreLayerException ex) {
new DefaultShell(OpenShiftLabel.Shell.SECURE_STORAGE);
}
new CancelButton().click();
// Cancel warning shell
new DefaultShell("Warning");
new OkButton().click();
new CheckBox(OpenShiftLabel.TextLabels.STORE_PASSWORD).toggle(false);
// Next button should work
new NextButton().click();
AbstractWaitCondition backButtonIsEnabled = new AbstractWaitCondition() {
@Override
public boolean test() {
return new BackButton().isEnabled();
}
};
new WaitUntil(backButtonIsEnabled);
new CancelButton().click();
}
use of org.eclipse.reddeer.swt.impl.button.OkButton in project jbosstools-openshift by jbosstools.
the class ServerAdapter method delete.
/**
* Deletes server adapter safely - if it was not selected, selects it and
* then deletes.
*/
public void delete() {
select();
new ContextMenuItem(OpenShiftLabel.ContextMenu.DELETE).select();
new DefaultShell(OpenShiftLabel.Shell.DELETE_ADAPTER);
new OkButton().click();
new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.DELETE_ADAPTER));
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
}
use of org.eclipse.reddeer.swt.impl.button.OkButton in project jbosstools-hibernate by jbosstools.
the class SelectConnectionProfileDialog method ok.
public void ok() {
new OkButton(this).click();
new WaitWhile(new ShellIsAvailable(this));
new DefaultShell("");
}
use of org.eclipse.reddeer.swt.impl.button.OkButton in project jbosstools-hibernate by jbosstools.
the class LaunchConfigurationsDialog method setRevengFile.
/**
* Select reveng file
* @param path path to existing reveng file
*/
public void setRevengFile(String... path) {
new PushButton(this, "Setup...").click();
org.eclipse.reddeer.swt.api.Shell setupShell = new DefaultShell("Setup reverse engineering");
new PushButton(setupShell, "Use existing...").click();
org.eclipse.reddeer.swt.api.Shell selectShell = new DefaultShell("Select reverse engineering settings file");
new DefaultTreeItem(new DefaultTree(selectShell), path).select();
new OkButton(selectShell).click();
new WaitWhile(new ShellIsAvailable(selectShell));
new WaitWhile(new ShellIsAvailable(setupShell));
}
Aggregations