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);
}
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
}
}
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);
}
}
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;
}
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);
}
}
Aggregations