use of org.eclipse.reddeer.common.wait.WaitUntil in project linuxtools by eclipse.
the class DockerContainer method remove.
public void remove() {
select();
boolean removeEnabled = new ContextMenu().getItem("Remove").isEnabled();
if (!removeEnabled) {
new ContextMenu().getItem("Stop").select();
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
item.select();
}
new ContextMenu().getItem("Remove").select();
new WaitUntil(new ShellIsAvailable("Confirm Remove Container"), TimePeriod.DEFAULT);
new PushButton("OK").click();
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
}
use of org.eclipse.reddeer.common.wait.WaitUntil in project jbosstools-hibernate by jbosstools.
the class LaunchConfigurationsDialog method run.
/**
* Executes configuration
*/
public void run() {
new PushButton(this, "Run").click();
new WaitWhile(new ShellIsAvailable(this));
new WaitUntil(new JobIsRunning());
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
}
use of org.eclipse.reddeer.common.wait.WaitUntil in project jbosstools-hibernate by jbosstools.
the class KnownConfigurationsView method getConsoleConfigurations.
public List<TreeItem> getConsoleConfigurations() {
Tree tree = null;
try {
tree = new DefaultTree(this);
} catch (RedDeerException e) {
return null;
}
new WaitUntil(new ConfigrationsAreLoaded(tree));
return tree.getItems();
}
use of org.eclipse.reddeer.common.wait.WaitUntil in project jbosstools-hibernate by jbosstools.
the class CodeGenerationConfigurationTest method checkGeneratedEntities.
private void checkGeneratedEntities(String src) {
PackageExplorerPart pe = new PackageExplorerPart();
pe.open();
try {
new WaitUntil(new EntityIsGenerated(prj, src, "org.gen", "Actor.java"));
pe.getProject(prj).getProjectItem(src, "org.gen", "Actor.java").open();
} catch (RedDeerException e) {
fail("Entities not generated, possible cause https://issues.jboss.org/browse/JBIDE-19217");
}
new DefaultEditor("Actor.java");
}
use of org.eclipse.reddeer.common.wait.WaitUntil in project jbosstools-hibernate by jbosstools.
the class ProjectImporter method importProjectWithoutErrors.
/**
* Import porject and requires no errors in problems log
* @param pluginId plug-in id of project where project resources are located
* @param projectName project name to import
*/
public static void importProjectWithoutErrors(String pluginId, String projectName, Map<String, String> libraryPathMap) {
importProject(pluginId, projectName);
if (libraryPathMap != null) {
Map<String, String> fullPathJars = new HashMap<>();
for (String jar : libraryPathMap.keySet()) {
if (libraryPathMap.get(jar) == null) {
fullPathJars.put(jar, LIB_DIR);
} else {
fullPathJars.put(jar, LIB_DIR + libraryPathMap.get(jar));
}
}
ProjectHelper.addLibrariesIntoProject(projectName, fullPathJars);
}
new WaitUntil(new JobIsRunning(), TimePeriod.SHORT, false);
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
ProblemsView problemsView = new ProblemsView();
problemsView.open();
new WaitWhile(new JobIsRunning());
List<Problem> problems = problemsView.getProblems(ProblemType.ERROR);
for (Problem p : problems) {
log.error("Unexpected " + problems.size() + " problem(s):");
log.dump("Problem: " + p.toString());
}
assertTrue("No problems after import are expected", problems.size() == 0);
}
Aggregations