Search in sources :

Example 11 with ImportApplicationWizard

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

ImportApplicationWizard (org.jboss.tools.openshift.reddeer.wizard.importapp.ImportApplicationWizard)11 Test (org.junit.Test)8 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)7 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)7 ContextMenuItem (org.eclipse.reddeer.swt.impl.menu.ContextMenuItem)6 GitCloningWizardPage (org.jboss.tools.openshift.reddeer.wizard.importapp.GitCloningWizardPage)4 Git (org.eclipse.jgit.api.Git)2 CheckBox (org.eclipse.reddeer.swt.impl.button.CheckBox)2 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)2 RedDeerException (org.eclipse.reddeer.common.exception.RedDeerException)1 WaitTimeoutExpiredException (org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException)1 TreeItemRegexMatcher (org.eclipse.reddeer.core.matcher.TreeItemRegexMatcher)1 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)1 DefaultGroup (org.eclipse.reddeer.swt.impl.group.DefaultGroup)1 DefaultTree (org.eclipse.reddeer.swt.impl.tree.DefaultTree)1 OpenShiftResourceExists (org.jboss.tools.openshift.reddeer.condition.OpenShiftResourceExists)1 OpenShiftExplorerView (org.jboss.tools.openshift.reddeer.view.OpenShiftExplorerView)1 ServerSettingsWizard (org.jboss.tools.openshift.reddeer.wizard.server.ServerSettingsWizard)1 ServerSettingsWizardPage (org.jboss.tools.openshift.reddeer.wizard.server.ServerSettingsWizardPage)1 OpenshiftTestInFailureException (org.jboss.tools.openshift.ui.bot.test.common.OpenshiftTestInFailureException)1