use of org.jboss.tools.openshift.reddeer.wizard.server.ServerSettingsWizard 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.jboss.tools.openshift.reddeer.wizard.server.ServerSettingsWizard in project jbosstools-openshift by jbosstools.
the class ImportApplicationWizardTest method testImportOpenShift3AppViaServerAdapterSettings.
@SuppressWarnings("unchecked")
@Test(expected = OpenshiftTestInFailureException.class)
public void testImportOpenShift3AppViaServerAdapterSettings() {
ServerSettingsWizard serverWizard = OpenShiftUtils.openServerSettingsWizardFromOpenshiftView(service);
ImportApplicationWizard importWizard = new ServerSettingsWizardPage().importProject();
new DefaultTree(importWizard).getItem(new TreeItemRegexMatcher(OpenShiftResources.NODEJS_SERVICE + ".*")).select();
importWizard.next();
importWizard.finish();
new DefaultShell(OpenShiftLabel.Shell.SERVER_ADAPTER_SETTINGS);
assertProjectNameFilled();
serverWizard.cancel();
assertProjectExistsInProjectView(OpenShiftResources.NODEJS_GIT_NAME);
}
Aggregations