use of org.eclipse.reddeer.eclipse.core.resources.ProjectItem 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));
}
use of org.eclipse.reddeer.eclipse.core.resources.ProjectItem in project jbosstools-openshift by jbosstools.
the class DebuggingEAPAppTest method getHelloServiceFile.
private ProjectItem getHelloServiceFile() {
ProjectExplorer projectExplorer = new ProjectExplorer();
projectExplorer.open();
Project project = projectExplorer.getProject(PROJECT_NAME);
ProjectItem helloServiceFile = project.getProjectItem("Java Resources", "src/main/java", "org.jboss.as.quickstarts.helloworld", "HelloService.java");
return helloServiceFile;
}
use of org.eclipse.reddeer.eclipse.core.resources.ProjectItem in project jbosstools-openshift by jbosstools.
the class DebuggingEAPAppTest method setupBreakpoint.
private void setupBreakpoint() {
// set breakpoint where we need it.
ProjectItem helloServiceFile = getHelloServiceFile();
setBreakpointToLineWithText(helloServiceFile, "return \"Hello");
}
Aggregations