use of org.eclipse.reddeer.requirements.db.DatabaseConfiguration in project jbosstools-hibernate by jbosstools.
the class JPADetailsViewTest method testConnectionProfile.
@Before
public void testConnectionProfile() {
importMavenProject(PRJ);
DatabaseConfiguration cfg = dbRequirement.getConfiguration();
DriverDefinitionFactory.createDatabaseDriverDefinition(cfg);
ConnectionProfileFactory.createConnectionProfile(cfg);
ProjectConfigurationFactory.setProjectFacetForDB(PRJ, cfg);
}
use of org.eclipse.reddeer.requirements.db.DatabaseConfiguration in project jbosstools-hibernate by jbosstools.
the class JPADetailsViewTest method cleanUp.
@After
public void cleanUp() {
DatabaseConfiguration cfg = dbRequirement.getConfiguration();
ConnectionProfileFactory.deleteConnectionProfile(cfg.getProfileName());
}
use of org.eclipse.reddeer.requirements.db.DatabaseConfiguration 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.requirements.db.DatabaseConfiguration in project jbosstools-hibernate by jbosstools.
the class JPAFacetTest method cleanUp.
@After
public void cleanUp() {
DatabaseConfiguration cfg = dbRequirement.getConfiguration();
ConnectionProfileFactory.deleteConnectionProfile(cfg.getProfileName());
deleteAllProjects();
}
use of org.eclipse.reddeer.requirements.db.DatabaseConfiguration in project jbosstools-hibernate by jbosstools.
the class JPAFacetTest method testConnectionProfile.
@Before
public void testConnectionProfile() {
importMavenProject(prj);
DatabaseConfiguration cfg = dbRequirement.getConfiguration();
DriverDefinitionFactory.createDatabaseDriverDefinition(cfg);
ConnectionProfileFactory.createConnectionProfile(cfg);
}
Aggregations