use of org.eclipse.reddeer.workbench.impl.editor.DefaultEditor in project jbosstools-hibernate by jbosstools.
the class JPAEntityGenerationTest method testEntityGeneration.
private void testEntityGeneration(boolean useHibernateConsole) {
prepare();
DatabaseConfiguration cfg = dbRequirement.getConfiguration();
EntityGenerationFactory.generateJPAEntities(cfg, prj, "org.gen", hbVersion, useHibernateConsole);
PackageExplorerPart pe = new PackageExplorerPart();
pe.open();
try {
new WaitUntil(new EntityIsGenerated(prj, "src/main/java", "org.gen", "Actor.java"));
pe.getProject(prj).getProjectItem("src/main/java", "org.gen", "Actor.java").open();
} catch (RedDeerException e) {
e.printStackTrace();
fail("Entities not generated, possible cause https://issues.jboss.org/browse/JBIDE-19175");
}
new DefaultEditor("Actor.java");
}
use of org.eclipse.reddeer.workbench.impl.editor.DefaultEditor in project jbosstools-hibernate by jbosstools.
the class ConsoleConfigurationFileTest method checkFile.
private void checkFile(boolean generateConsole) {
PackageExplorerPart pe = new PackageExplorerPart();
pe.open();
pe.getProject(prjName).getProjectItem("src", HIBERNATE_CFG_FILE).open();
new DefaultEditor(HIBERNATE_CFG_FILE);
if (generateConsole) {
KnownConfigurationsView v = new KnownConfigurationsView();
v.selectConsole(prjName);
}
}
Aggregations