use of org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException in project jbosstools-hibernate by jbosstools.
the class HQLEditor method runHQLQuery.
/**
* Executes HQL query
*/
public void runHQLQuery() {
new DefaultToolItem("Run HQL").click();
try {
Shell s = new DefaultShell("Open Session factory");
new YesButton(s).click();
new WaitWhile(new ShellIsAvailable(s));
} catch (WaitTimeoutExpiredException e) {
log.warn("Open Session factory question dialog was expected");
}
}
use of org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException in project jbosstools-hibernate by jbosstools.
the class CodeGenerationConfigurationTest method createRevengFile.
private void createRevengFile() {
ProjectExplorer pe = new ProjectExplorer();
pe.open();
pe.selectProjects(prj);
NewReverseEngineeringFileWizard wizard = new NewReverseEngineeringFileWizard();
wizard.open();
wizard.next();
TableFilterWizardPage page = new TableFilterWizardPage(wizard);
page.setConsoleConfiguration(prj);
page.refreshDatabaseSchema();
page.pressInclude();
wizard.finish();
EditorHandler.getInstance().closeAll(false);
pe.open();
pe.getProject(prj).getProjectItem("hibernate.reveng.xml").open();
new DefaultEditor("Hibernate Reverse Engineering Editor").activate();
ReverseEngineeringEditor re = new ReverseEngineeringEditor();
re.activateDesignTab();
re.activateOverviewTab();
re.activateTableFiltersTab();
re.activateTypeMappingsTab();
re.activateTableAndColumnsTab();
try {
re.selectAllTables("SAKILA.PUBLIC");
} catch (WaitTimeoutExpiredException e) {
fail("Cannot add tables - known issue(s) - JBIDE-19443");
}
re.activateSourceTab();
re.save();
}
use of org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException in project jbosstools-hibernate by jbosstools.
the class ConsoleConfigurationTest method prepareConsoleConfiguration.
public void prepareConsoleConfiguration(String hibernateVersion) {
KnownConfigurationsView v = new KnownConfigurationsView();
v.open();
EditConfigurationShell s = v.addConfiguration();
s.setName(CONSOLE_NAME);
EditConfigurationMainPage p = s.getMainPage();
p.setProject(prjName);
p.setDatabaseConnection(PredefinedConnection.HIBERNATE_CONFIGURED_CONNECTION);
p.setConfigurationFile("/" + prjName + "/" + HIBERNATE_CFG_FILE);
p.setHibernateVersion(hibernateVersion);
// ANY ERROR IN WIZARD ??
s.ok();
v.open();
EditConfigurationShell s2 = v.openConsoleConfiguration(CONSOLE_NAME);
s2.close();
v.open();
try {
v.selectNode(CONSOLE_NAME, "Database", "SAKILA.PUBLIC", "ACTOR");
} catch (WaitTimeoutExpiredException e) {
log.info("Wait timeout occured, try rebuilding console config");
v.selectConsole(CONSOLE_NAME);
new ContextMenuItem("Rebuild configuration").select();
new WaitWhile(new JobIsRunning());
v.selectNode(CONSOLE_NAME, "Database", "SAKILA.PUBLIC", "ACTOR");
}
}
use of org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException in project jbosstools-openshift by jbosstools.
the class DeleteResourceTest method testDeletePod.
@Test
public void testDeletePod() {
OpenShiftResource applicationPod = OpenShiftUtils.getOpenShiftPod(projectReq.getProjectName(), new StringStartsWith("eap-app-"), connectionReq.getConnection());
String podName = applicationPod.getName();
applicationPod.delete();
try {
OpenShiftResourceExists openShiftResourceExists = new OpenShiftResourceExists(Resource.POD, podName, ResourceState.UNSPECIFIED, projectReq.getProjectName(), connectionReq.getConnection());
new WaitWhile(openShiftResourceExists, TimePeriod.getCustom(15));
} catch (WaitTimeoutExpiredException ex) {
fail("Application pod should be deleted at this point, but it it still present.");
}
}
use of org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException in project jbosstools-openshift by jbosstools.
the class PublishChangesTest method verifyChangesTookEffect.
private void verifyChangesTookEffect() {
new ServerAdapter(Version.OPENSHIFT3, "eap-app", "Service").select();
new ContextMenuItem(OpenShiftLabel.ContextMenu.SHOW_IN_WEB_BROWSER).select();
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
try {
new WaitUntil(new BrowserContainsText("Hello"), TimePeriod.VERY_LONG);
} catch (WaitTimeoutExpiredException ex) {
fail("Application was not deployed successfully because it is not shown in web browser properly.");
}
}
Aggregations