use of org.jboss.tools.hibernate.reddeer.perspective.HibernatePerspective in project jbosstools-hibernate by jbosstools.
the class HibernateUIPartsTest method testHibernatePerspective.
/**
* Tests hibernate perspective
*/
@Test
public void testHibernatePerspective() {
HibernatePerspective p = new HibernatePerspective();
p.open();
p.reset();
assertTrue(p.getPerspectiveLabel().equals("Hibernate"));
}
use of org.jboss.tools.hibernate.reddeer.perspective.HibernatePerspective in project jbosstools-hibernate by jbosstools.
the class AntFileExportTest method testAntFilenameExport.
@Test
public void testAntFilenameExport() {
HibernatePerspective p = new HibernatePerspective();
p.open();
LaunchConfigurationsDialog launchDialog = new LaunchConfigurationsDialog();
launchDialog.open();
launchDialog.selectHibernateCodeGeneration(GEN_NAME);
launchDialog.selectConfiguration(PRJ);
launchDialog.apply();
launchDialog.close();
PackageExplorerPart pe = new PackageExplorerPart();
pe.open();
pe.selectProjects(PRJ);
ExportAntCodeGenWizard w = new ExportAntCodeGenWizard();
w.open();
ExportAntCodeGenWizardPage page = new ExportAntCodeGenWizardPage(w);
page.setHibernateGenConfiguration(GEN_NAME);
page.setAntFileName(ANTFILE_NAME);
w.finish();
pe.open();
pe.getProject(PRJ).getProjectItem(ANTFILE_NAME).open();
assertTrue("Ant file cannot be ampty", new TextEditor(ANTFILE_NAME).getText().length() > 0);
}
use of org.jboss.tools.hibernate.reddeer.perspective.HibernatePerspective in project jbosstools-hibernate by jbosstools.
the class LaunchConfigurationsDialog method open.
/**
* Opens Hibernate code generation configuration dialog
*/
public void open() {
HibernatePerspective p = new HibernatePerspective();
p.open();
new ShellMenuItem("Run", "Hibernate Code Generation...", "Hibernate Code Generation Configurations...").select();
swtWidget = new DefaultShell(DIALOG_TITLE).getSWTWidget();
}
Aggregations