Search in sources :

Example 1 with ServerSettingsWizardPage

use of org.jboss.tools.openshift.reddeer.wizard.server.ServerSettingsWizardPage 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

TreeItemRegexMatcher (org.eclipse.reddeer.core.matcher.TreeItemRegexMatcher)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 ServerSettingsWizard (org.jboss.tools.openshift.reddeer.wizard.server.ServerSettingsWizard)1 ServerSettingsWizardPage (org.jboss.tools.openshift.reddeer.wizard.server.ServerSettingsWizardPage)1 Test (org.junit.Test)1