use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer in project jbosstools-openshift by jbosstools.
the class CreateApplicationOnBuilderImageTest method tearDown.
@After
public void tearDown() {
OpenShiftExplorerView explorer = new OpenShiftExplorerView();
explorer.reopen();
OpenShift3Connection connection = explorer.getOpenShift3Connection(connectionReq.getConnection());
connection.getProject().delete();
ProjectExplorer projectExplorer = new ProjectExplorer();
if (projectExplorer.containsProject(projectName)) {
projectExplorer.getProject(projectName).delete();
}
}
use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer in project jbosstools-openshift by jbosstools.
the class ImportApplicationWizardTest method assertProjectExistsInProjectView.
private void assertProjectExistsInProjectView(String projectName) {
ProjectExplorer projectExplorer = new ProjectExplorer();
projectExplorer.open();
assertTrue("Project '" + projectName + "' was not found in the project explorer!", projectExplorer.containsProject(projectName));
}
use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer 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));
}
use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer in project jbosstools-hibernate by jbosstools.
the class MappingFileTest method containsItem.
private boolean containsItem(String pckg, String item) {
ProjectExplorer pe = new ProjectExplorer();
pe.open();
if (pe.getProject(PRJ).containsResource("Java Resources")) {
return pe.getProject(PRJ).containsResource("Java Resources", "src/main/java", pckg, item);
}
return pe.getProject(PRJ).containsResource("src/main/java", pckg, item);
}
use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer in project jbosstools-hibernate by jbosstools.
the class MappingFileTest method createMappingFilePackageWithNoConfig.
// JBIDE-21766
@Test
public void createMappingFilePackageWithNoConfig() {
ProjectExplorer pe = new ProjectExplorer();
pe.open();
PropertyDialog pd = pe.getProject(PRJ).openProperties();
pd.select("Hibernate Settings");
new DefaultCombo(pd).setSelection("<None>");
pd.ok();
createMappingFileFromPackage();
}
Aggregations