use of org.eclipse.reddeer.swt.condition.TreeContainsItem in project jbosstools-openshift by jbosstools.
the class DeployDockerImageTest method pullHelloImageIfDoesNotExist.
/**
* If hello world docker image does not exist, this method will pull it.
*/
private static void pullHelloImageIfDoesNotExist() {
DockerExplorerView dockerExplorer = new DockerExplorerView();
DockerConnection dockerConnection = dockerExplorer.getDockerConnectionByName(DOCKER_CONNECTION);
dockerConnection.getTreeItem().expand();
new WaitWhile(new JobIsRunning());
new WaitWhile(new TreeContainsItem(dockerConnection.getTreeItem().getParent(), dockerConnection.getTreeItem().getText(), "Loading..."), TimePeriod.LONG);
if (dockerConnection.getImage(HELLO_OS_DOCKER_IMAGE, TAG) == null) {
dockerConnection.pullImage(HELLO_OS_DOCKER_IMAGE, TAG);
}
}
use of org.eclipse.reddeer.swt.condition.TreeContainsItem in project jbosstools-hibernate by jbosstools.
the class ReverseEngineeringEditor method selectAllTables.
/**
* Select all tables within Add Tables & Columns tab
*/
public void selectAllTables(String databaseName) {
activateTableAndColumnsTab();
new PushButton(this, "Add...").click();
Shell s = new DefaultShell("Add Tables & Columns");
DefaultTree dbTree = new DefaultTree(s);
new WaitUntil(new TreeHasChildren(dbTree));
new WaitUntil(new TreeContainsItem(dbTree, databaseName));
new DefaultTreeItem(dbTree, databaseName).select();
new PushButton(s, "Select all children").click();
new PushButton(s, "OK").click();
new WaitWhile(new ShellIsAvailable(s));
}
Aggregations