use of org.jboss.tools.hibernate.reddeer.wizard.WizardNewDSXMLFileCreationPage in project jbosstools-hibernate by jbosstools.
the class JBossDatasourceTest method jbossDatasourceTest.
@Test
public void jbossDatasourceTest() {
DatabaseConfiguration cfg = dbRequirement.getConfiguration();
NewDSXMLWizard wizard = new NewDSXMLWizard();
wizard.open();
WizardNewDSXMLFileCreationPage page = new WizardNewDSXMLFileCreationPage(wizard);
page.setConnectionProfile(cfg.getProfileName());
page.setParentFolder("/" + PRJ + "/src/main/resources");
wizard.finish();
String dsFileName = cfg.getProfileName() + "-ds.xml";
assertFalse(new DefaultEditor(dsFileName).isDirty());
ProjectExplorer pe = new ProjectExplorer();
pe.open();
assertTrue(pe.getProject(PRJ).containsResource("src", "main", "resources", dsFileName));
}
Aggregations