use of org.eclipse.reddeer.workbench.core.condition.JobIsRunning in project jbosstools-openshift by jbosstools.
the class DisableSecureStorageRequirement method setSecureStorageMasterPasswords.
private void setSecureStorageMasterPasswords(boolean checked) {
WorkbenchPreferenceDialog preferenceDialog = new WorkbenchPreferenceDialog();
StoragePreferencePage storagePage = new StoragePreferencePage(preferenceDialog);
preferenceDialog.open();
preferenceDialog.select(storagePage);
try {
new WaitUntil(new WidgetIsFound(org.eclipse.swt.custom.CLabel.class, new WithMnemonicTextMatcher("Secure Storage")), TimePeriod.DEFAULT);
log.info("Getting master password providers");
List<PasswordProvider> items = storagePage.getMasterPasswordProviders();
for (PasswordProvider item : items) {
log.info("Uncheking table item: " + item.getDescription());
item.setEnabled(checked);
}
new WaitUntil(new JobIsRunning(), TimePeriod.DEFAULT, false);
storagePage.apply();
} catch (WaitTimeoutExpiredException exc) {
log.error("Secure Storage preferences page has timed out");
log.error(exc.getMessage());
} finally {
preferenceDialog.ok();
}
}
use of org.eclipse.reddeer.workbench.core.condition.JobIsRunning in project jbosstools-openshift by jbosstools.
the class NewCDKServerWizard method cancel.
@Override
public void cancel() {
try {
// wait for job to start
new WaitUntil(new JobIsRunning(), TimePeriod.MEDIUM);
// job has started - try to kill it
new WaitUntil(new JobIsKilled("Refreshing server adapter list"), TimePeriod.LONG, false);
} catch (WaitTimeoutExpiredException exc) {
// do nothing because job did not start
}
super.cancel();
}
use of org.eclipse.reddeer.workbench.core.condition.JobIsRunning in project jbosstools-openshift by jbosstools.
the class CDKServerAdapterAbstractTest method setupCDKServerAbstract.
@Before
public void setupCDKServerAbstract() {
// $NON-NLS-1$
log.info("Open Servers view tab");
setServersView(new CDKServersView());
getServersView().open();
// $NON-NLS-1$
log.info("Getting server object from Servers View with name: " + getServerAdapter());
setCDKServer(getServersView().getServer(getServerAdapter()));
new WaitUntil(new JobIsRunning(), TimePeriod.DEFAULT, false);
}
use of org.eclipse.reddeer.workbench.core.condition.JobIsRunning in project jbosstools-openshift by jbosstools.
the class CDK3ServerEditorTest method setServerEditor.
public void setServerEditor() {
serversView = new CDKServersView();
serversView.open();
serversView.getServer(getServerAdapter()).open();
editor = new CDK3ServerEditor(getServerAdapter());
editor.activate();
new WaitUntil(new JobIsRunning(), TimePeriod.getCustom(1), false);
}
use of org.eclipse.reddeer.workbench.core.condition.JobIsRunning in project jbosstools-openshift by jbosstools.
the class OpenNewApplicationWizardWithNoProjectTest method deleteTmpProject.
@After
public void deleteTmpProject() {
OpenShift3Connection connection = new OpenShiftExplorerView().getOpenShift3Connection(connectionReq.getConnection());
connection.refresh();
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
if (connection.projectExists(projectName)) {
connection.getProject(projectName).delete();
}
// Delete connection too
new OpenShiftExplorerView().getOpenShift3Connection(connectionReq.getConnection()).remove();
}
Aggregations