Search in sources :

Example 16 with ProjectExplorer

use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer in project jbosstools-openshift by jbosstools.

the class OpenShiftUtils method updateMavenProject.

public static void updateMavenProject(String projectName) {
    new ProjectExplorer().getProject(projectName);
    new ContextMenuItem("Maven", "Update Project...").select();
    new DefaultShell("Update Maven Project");
    new PushButton("Select All").click();
    new PushButton("OK").click();
    new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG);
}
Also used : ProjectExplorer(org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) ContextMenuItem(org.eclipse.reddeer.swt.impl.menu.ContextMenuItem) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton)

Example 17 with ProjectExplorer

use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer in project jbosstools-openshift by jbosstools.

the class NodeJSAppDebugTest method clean.

@After
public void clean() {
    ProjectExplorer pe = new ProjectExplorer();
    pe.open();
    pe.deleteAllProjects();
    try {
        new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
        new ServerAdapter(Version.OPENSHIFT3, OpenShiftResources.NODEJS_SERVICE).delete();
    } catch (OpenShiftToolsException ex) {
    // do nothing, adapter does not exists
    }
}
Also used : ProjectExplorer(org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer) ServerAdapter(org.jboss.tools.openshift.reddeer.view.resources.ServerAdapter) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning) OpenShiftToolsException(org.jboss.tools.openshift.reddeer.exception.OpenShiftToolsException) After(org.junit.After)

Example 18 with ProjectExplorer

use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer in project jbosstools-openshift by jbosstools.

the class CreateApplicationOnBuilderImageTest method setUp.

@Before
public void setUp() {
    OpenShift3NativeProjectUtils.getOrCreateProject(DatastoreOS3.PROJECT1, DatastoreOS3.PROJECT1_DISPLAYED_NAME, StringUtils.EMPTY, connectionReq.getConnection());
    TestUtils.cleanupGitFolder(gitFolder);
    if (new ProjectExists(projectName).test()) {
        new ProjectExplorer().getProject(projectName).delete(true);
    }
}
Also used : ProjectExplorer(org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer) ProjectExists(org.eclipse.reddeer.eclipse.condition.ProjectExists) Before(org.junit.Before)

Example 19 with ProjectExplorer

use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer 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 20 with ProjectExplorer

use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer in project jbosstools-openshift by jbosstools.

the class DebuggingEAPAppTest method cleanProjectsAndGitRepo.

private static void cleanProjectsAndGitRepo() {
    ProjectExplorer projectExplorer = new ProjectExplorer();
    projectExplorer.open();
    projectExplorer.deleteAllProjects(true);
    try {
        TestUtils.delete(new File(GIT_REPO_DIRECTORY));
    } catch (IOException e) {
        throw new RuntimeException("Deletion of git repo was unsuccessfull.", e);
    }
}
Also used : ProjectExplorer(org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer) IOException(java.io.IOException) File(java.io.File)

Aggregations

ProjectExplorer (org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer)41 Test (org.junit.Test)12 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)10 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)8 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)8 File (java.io.File)6 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)6 PropertyDialog (org.eclipse.reddeer.eclipse.ui.dialogs.PropertyDialog)5 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)5 IOException (java.io.IOException)4 WaitTimeoutExpiredException (org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException)4 OpenShiftExplorerView (org.jboss.tools.openshift.reddeer.view.OpenShiftExplorerView)4 AbstractTest (org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest)4 TreeItem (org.eclipse.reddeer.swt.api.TreeItem)3 FinishButton (org.eclipse.reddeer.swt.impl.button.FinishButton)3 NextButton (org.eclipse.reddeer.swt.impl.button.NextButton)3 OkButton (org.eclipse.reddeer.swt.impl.button.OkButton)3 TextEditor (org.eclipse.reddeer.workbench.impl.editor.TextEditor)3 AfterClass (org.junit.AfterClass)3 Before (org.junit.Before)3