use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer in project jbosstools-hibernate by jbosstools.
the class ProjectUtils method getPackage.
public static ProjectItem getPackage(String project, String pckg) {
ProjectExplorer pe = new ProjectExplorer();
pe.open();
if (pe.getProject(project).containsResource("Java Resources")) {
return pe.getProject(project).getProjectItem("Java Resources", "src/main/java", pckg);
}
return pe.getProject(project).getProjectItem("src/main/java", pckg);
}
use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer in project jbosstools-openshift by jbosstools.
the class ServerAdapterWizardHandlingTest method testProjectSelectedInProjectExplorerIsPreselected.
@Test
public void testProjectSelectedInProjectExplorerIsPreselected() {
new ProjectExplorer().selectProjects(PROJECT_NAME);
openNewServerAdapterWizard();
next();
String eclipseProject = Display.syncExec(new ResultRunnable<String>() {
@Override
public String run() {
return new LabeledText("Eclipse Project: ").getSWTWidget().getText();
}
});
assertTrue("Selected project from workspace should be preselected", eclipseProject.equals(PROJECT_NAME));
}
use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer in project jbosstools-openshift by jbosstools.
the class PublishChangesTest method removeAdapterAndApplication.
@AfterClass
public static void removeAdapterAndApplication() {
try {
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
new ServerAdapter(Version.OPENSHIFT3, "eap-app", "Service").delete();
} catch (OpenShiftToolsException ex) {
// do nothing, adapter does not exists
}
new ProjectExplorer().getProject(PROJECT_NAME).delete(false);
TestUtils.cleanupGitFolder(new File(GIT_REPO_DIRECTORY));
}
use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer in project jbosstools-openshift by jbosstools.
the class PublishChangesTest method waitForRunningApplication.
@BeforeClass
public static void waitForRunningApplication() {
new ProjectExplorer().deleteAllProjects(true);
new WaitUntil(new OpenShiftResourceExists(Resource.BUILD, "eap-app-1", ResourceState.COMPLETE, projectReq.getProjectName(), connectionReq.getConnection()), TimePeriod.getCustom(1000));
OpenShiftExplorerView openShiftExplorerView = new OpenShiftExplorerView();
OpenShiftProject project = openShiftExplorerView.getOpenShift3Connection(connectionReq.getConnection()).getProject(projectReq.getProjectName());
new WaitUntil(new ApplicationPodIsRunning(project), TimePeriod.LONG);
cloneGitRepoAndImportProject();
}
use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer in project jbosstools-openshift by jbosstools.
the class PublishChangesTest method changeProjectAndVerifyAutoPublish.
private void changeProjectAndVerifyAutoPublish() {
ProjectExplorer projectExplorer = new ProjectExplorer();
projectExplorer.open();
projectExplorer.getProject(PROJECT_NAME).select();
ProjectItem projectItem = projectExplorer.getProject(PROJECT_NAME).getProjectItem("Java Resources", "src/main/java", "org.jboss.as.quickstarts.helloworld", "HelloService.java");
projectItem.select();
projectItem.open();
TextEditor textEditor = new TextEditor("HelloService.java");
textEditor.setText(PUBLISHED_CODE);
textEditor.close(true);
new WaitWhile(new JobIsRunning(), TimePeriod.DEFAULT);
new WaitUntil(new ConsoleHasNoChange(), TimePeriod.VERY_LONG);
assertTrue("Local changes performed to project have not been autopublished, or at least rsync " + "output in console view does not contain information about sending incremental list of changes," + "specifically with changed class " + changedClass, new ConsoleView().getConsoleText().contains(changedClass));
}
Aggregations