Search in sources :

Example 1 with ServerSettingsWizard

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();
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) ServerSettingsWizard(org.jboss.tools.openshift.reddeer.wizard.server.ServerSettingsWizard) ContextMenuItem(org.eclipse.reddeer.swt.impl.menu.ContextMenuItem) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Example 2 with 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);
}
Also used : DefaultTree(org.eclipse.reddeer.swt.impl.tree.DefaultTree) TreeItemRegexMatcher(org.eclipse.reddeer.core.matcher.TreeItemRegexMatcher) ServerSettingsWizard(org.jboss.tools.openshift.reddeer.wizard.server.ServerSettingsWizard) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) ImportApplicationWizard(org.jboss.tools.openshift.reddeer.wizard.importapp.ImportApplicationWizard) ServerSettingsWizardPage(org.jboss.tools.openshift.reddeer.wizard.server.ServerSettingsWizardPage) Test(org.junit.Test)

Aggregations

ServerSettingsWizard (org.jboss.tools.openshift.reddeer.wizard.server.ServerSettingsWizard)2 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)1 TreeItemRegexMatcher (org.eclipse.reddeer.core.matcher.TreeItemRegexMatcher)1 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)1 ContextMenuItem (org.eclipse.reddeer.swt.impl.menu.ContextMenuItem)1 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)1 DefaultTree (org.eclipse.reddeer.swt.impl.tree.DefaultTree)1 ImportApplicationWizard (org.jboss.tools.openshift.reddeer.wizard.importapp.ImportApplicationWizard)1 ServerSettingsWizardPage (org.jboss.tools.openshift.reddeer.wizard.server.ServerSettingsWizardPage)1 Test (org.junit.Test)1