use of org.eclipse.reddeer.swt.impl.menu.ContextMenuItem in project jbosstools-openshift by jbosstools.
the class OpenShiftUtils method openImportApplicationWizardFromOpenshiftView.
public static ImportApplicationWizard openImportApplicationWizardFromOpenshiftView(OpenShiftProject openshiftProject) {
openshiftProject.select();
new ContextMenuItem(OpenShiftLabel.ContextMenu.IMPORT_APPLICATION).select();
new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.IMPORT_APPLICATION));
return new ImportApplicationWizard();
}
use of org.eclipse.reddeer.swt.impl.menu.ContextMenuItem in project jbosstools-openshift by jbosstools.
the class OpenShiftUtils method openServerSettingsWizardFromOpenshiftView.
public static ServerSettingsWizard openServerSettingsWizardFromOpenshiftView(Service openshiftService) {
openshiftService.select();
new ContextMenuItem(OpenShiftLabel.ContextMenu.NEW_ADAPTER_FROM_EXPLORER).select();
new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.SERVER_ADAPTER_SETTINGS), TimePeriod.LONG);
return new ServerSettingsWizard();
}
use of org.eclipse.reddeer.swt.impl.menu.ContextMenuItem 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.swt.impl.menu.ContextMenuItem in project jbosstools-openshift by jbosstools.
the class ImportApplicationWizardGitTest method testNotGitRepo.
@Test
public void testNotGitRepo() {
assertTrue("Failed to create test project non git folder!", projectFolder.mkdir());
service.select();
new ContextMenuItem(OpenShiftLabel.ContextMenu.IMPORT_APPLICATION).select();
new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.IMPORT_APPLICATION));
ImportApplicationWizard importWizard = new ImportApplicationWizard();
assertProjectExistsErrorInWizard(importWizard);
CheckBox useExistingRepositoryCheckBox = new CheckBox(new DefaultGroup("Clone destination"), "Do not clone - use existing repository");
assertFalse("Empty non git folder should not be able to choose!", useExistingRepositoryCheckBox.isEnabled());
importWizard.cancel();
}
use of org.eclipse.reddeer.swt.impl.menu.ContextMenuItem in project jbosstools-openshift by jbosstools.
the class ImportApplicationWizardGitTest method testNotExistingBranch.
@Test(expected = OpenshiftTestInFailureException.class)
public void testNotExistingBranch() {
Git repo = createRepo();
setRemote(repo, getOriginURL());
performCommit(repo);
renameMaster(repo);
service.select();
new ContextMenuItem(OpenShiftLabel.ContextMenu.IMPORT_APPLICATION).select();
new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.IMPORT_APPLICATION));
ImportApplicationWizard importWizard = new ImportApplicationWizard();
assertProjectExistsErrorInWizard(importWizard);
GitCloningWizardPage gitCloningWizardPage = new GitCloningWizardPage();
gitCloningWizardPage.useExistingRepository(true);
try {
assertGitRemoteErrorInWizzard(importWizard);
} catch (AssertionError err) {
importWizard.cancel();
throw new OpenshiftTestInFailureException("https://issues.jboss.org/browse/JBIDE-24646", err);
}
importWizard.cancel();
}
Aggregations