Search in sources :

Example 1 with ProjectItem

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));
}
Also used : ProjectExplorer(org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer) ProjectItem(org.eclipse.reddeer.eclipse.core.resources.ProjectItem) TextEditor(org.eclipse.reddeer.workbench.impl.editor.TextEditor) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) ConsoleView(org.eclipse.reddeer.eclipse.ui.console.ConsoleView) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil) ConsoleHasNoChange(org.eclipse.reddeer.eclipse.condition.ConsoleHasNoChange)

Example 2 with ProjectItem

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;
}
Also used : ProjectExplorer(org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer) Project(org.eclipse.reddeer.eclipse.core.resources.Project) RequiredProject(org.jboss.tools.openshift.reddeer.requirement.OpenShiftProjectRequirement.RequiredProject) ProjectItem(org.eclipse.reddeer.eclipse.core.resources.ProjectItem)

Example 3 with ProjectItem

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");
}
Also used : ProjectItem(org.eclipse.reddeer.eclipse.core.resources.ProjectItem)

Aggregations

ProjectItem (org.eclipse.reddeer.eclipse.core.resources.ProjectItem)3 ProjectExplorer (org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer)2 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)1 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)1 ConsoleHasNoChange (org.eclipse.reddeer.eclipse.condition.ConsoleHasNoChange)1 Project (org.eclipse.reddeer.eclipse.core.resources.Project)1 ConsoleView (org.eclipse.reddeer.eclipse.ui.console.ConsoleView)1 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)1 TextEditor (org.eclipse.reddeer.workbench.impl.editor.TextEditor)1 RequiredProject (org.jboss.tools.openshift.reddeer.requirement.OpenShiftProjectRequirement.RequiredProject)1