use of org.eclipse.reddeer.requirements.db.DatabaseConfiguration in project jbosstools-hibernate by jbosstools.
the class CodeGenerationConfigurationTest method prepareMvn.
private void prepareMvn() {
importMavenProject(prj);
DatabaseConfiguration cfg = dbRequirement.getConfiguration();
HibernateToolsFactory.createConfigurationFile(cfg, prj, "hibernate.cfg.xml", true);
HibernateToolsFactory.setHibernateVersion(prj, hbVersion);
}
use of org.eclipse.reddeer.requirements.db.DatabaseConfiguration in project jbosstools-hibernate by jbosstools.
the class ConnectionProfileTest method testConnectionProfile.
@Test
public void testConnectionProfile() {
DatabaseConfiguration cfg = dbRequirement.getConfiguration();
DriverDefinitionFactory.createDatabaseDriverDefinition(cfg);
ConnectionProfileFactory.createConnectionProfile(cfg);
}
use of org.eclipse.reddeer.requirements.db.DatabaseConfiguration in project jbosstools-hibernate by jbosstools.
the class ConnectionProfileTest 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 ConsoleConfigurationFileTest method createConfigFile.
private NewConfigurationWizard createConfigFile() {
NewConfigurationWizard wizard = new NewConfigurationWizard();
wizard.open();
NewConfigurationFirstPage p1 = new NewConfigurationFirstPage(wizard);
p1.setLocation(prjName, "src");
wizard.next();
DatabaseConfiguration cfg = dbRequirement.getConfiguration();
NewConfigurationWizardPage p2 = new NewConfigurationWizardPage(wizard);
p2.setHibernateVersion(hbVersion);
p2.setConnectionURL(cfg.getJdbcString());
p2.setUsername(cfg.getUsername());
return wizard;
}
use of org.eclipse.reddeer.requirements.db.DatabaseConfiguration in project jbosstools-hibernate by jbosstools.
the class ConsoleConfigurationTest method prepareConsoleConfigurationFile.
public void prepareConsoleConfigurationFile(String hibernateVersion) {
DatabaseConfiguration cfg = dbRequirement.getConfiguration();
NewConfigurationWizard wizard = new NewConfigurationWizard();
wizard.open();
NewConfigurationFirstPage p1 = new NewConfigurationFirstPage(wizard);
p1.setLocation(prjName, "src");
wizard.next();
NewConfigurationWizardPage p2 = new NewConfigurationWizardPage(wizard);
p2.setDatabaseDialect("H2");
p2.setDriverClass(cfg.getDriverClass());
p2.setConnectionURL(cfg.getJdbcString());
p2.setUsername(cfg.getUsername());
p2.setHibernateVersion(hibernateVersion);
wizard.finish();
}
Aggregations