Search in sources :

Example 1 with CDKServersView

use of org.jboss.tools.cdk.reddeer.server.ui.CDKServersView in project jbosstools-openshift by jbosstools.

the class CDKLaunchConfigurationTest method setServerEditor.

@Override
public void setServerEditor() {
    serversView = new CDKServersView();
    serversView.open();
    serversView.getServer(getServerAdapter()).open();
    editor = new CDK32ServerEditor(getServerAdapter());
    editor.activate();
    new WaitUntil(new JobIsRunning(), TimePeriod.getCustom(1), false);
}
Also used : CDKServersView(org.jboss.tools.cdk.reddeer.server.ui.CDKServersView) CDK32ServerEditor(org.jboss.tools.cdk.reddeer.server.ui.editor.CDK32ServerEditor) SystemJobIsRunning(org.jboss.tools.cdk.reddeer.core.condition.SystemJobIsRunning) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Example 2 with CDKServersView

use of org.jboss.tools.cdk.reddeer.server.ui.CDKServersView in project jbosstools-openshift by jbosstools.

the class CDKTestUtils method openNewServerWizardDialog.

public static NewCDKServerWizard openNewServerWizardDialog() {
    // $NON-NLS-1$
    log.info("Adding new Container Development Environment server adapter");
    // call new server dialog from servers view
    CDKServersView view = new CDKServersView();
    view.open();
    NewCDKServerWizard dialog = view.newCDKServer();
    new WaitWhile(new JobIsRunning(), TimePeriod.MEDIUM, false);
    return dialog;
}
Also used : WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) CDKServersView(org.jboss.tools.cdk.reddeer.server.ui.CDKServersView) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning) NewCDKServerWizard(org.jboss.tools.cdk.reddeer.server.ui.wizard.NewCDKServerWizard)

Example 3 with CDKServersView

use of org.jboss.tools.cdk.reddeer.server.ui.CDKServersView in project jbosstools-openshift by jbosstools.

the class CDKServerAdapterAbstractTest method setupCDKServerAbstract.

@Before
public void setupCDKServerAbstract() {
    // $NON-NLS-1$
    log.info("Open Servers view tab");
    setServersView(new CDKServersView());
    getServersView().open();
    // $NON-NLS-1$
    log.info("Getting server object from Servers View with name: " + getServerAdapter());
    setCDKServer(getServersView().getServer(getServerAdapter()));
    new WaitUntil(new JobIsRunning(), TimePeriod.DEFAULT, false);
}
Also used : CDKServersView(org.jboss.tools.cdk.reddeer.server.ui.CDKServersView) SystemJobIsRunning(org.jboss.tools.cdk.reddeer.core.condition.SystemJobIsRunning) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil) Before(org.junit.Before)

Example 4 with CDKServersView

use of org.jboss.tools.cdk.reddeer.server.ui.CDKServersView in project jbosstools-openshift by jbosstools.

the class CDK3ServerEditorTest method setServerEditor.

public void setServerEditor() {
    serversView = new CDKServersView();
    serversView.open();
    serversView.getServer(getServerAdapter()).open();
    editor = new CDK3ServerEditor(getServerAdapter());
    editor.activate();
    new WaitUntil(new JobIsRunning(), TimePeriod.getCustom(1), false);
}
Also used : CDK3ServerEditor(org.jboss.tools.cdk.reddeer.server.ui.editor.CDK3ServerEditor) CDKServersView(org.jboss.tools.cdk.reddeer.server.ui.CDKServersView) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning) SystemJobIsRunning(org.jboss.tools.cdk.reddeer.core.condition.SystemJobIsRunning) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Example 5 with CDKServersView

use of org.jboss.tools.cdk.reddeer.server.ui.CDKServersView in project jbosstools-openshift by jbosstools.

the class MinishiftServerEditorTest method setServerEditor.

@Override
public void setServerEditor() {
    serversView = new CDKServersView();
    serversView.open();
    serversView.getServer(getServerAdapter()).open();
    editor = new Minishift17ServerEditor(getServerAdapter());
    editor.activate();
    new WaitUntil(new JobIsRunning(), TimePeriod.getCustom(1), false);
}
Also used : CDKServersView(org.jboss.tools.cdk.reddeer.server.ui.CDKServersView) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning) SystemJobIsRunning(org.jboss.tools.cdk.reddeer.core.condition.SystemJobIsRunning) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil) Minishift17ServerEditor(org.jboss.tools.cdk.reddeer.server.ui.editor.Minishift17ServerEditor)

Aggregations

JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)6 CDKServersView (org.jboss.tools.cdk.reddeer.server.ui.CDKServersView)6 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)5 SystemJobIsRunning (org.jboss.tools.cdk.reddeer.core.condition.SystemJobIsRunning)5 CDK32ServerEditor (org.jboss.tools.cdk.reddeer.server.ui.editor.CDK32ServerEditor)2 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)1 CDK3ServerEditor (org.jboss.tools.cdk.reddeer.server.ui.editor.CDK3ServerEditor)1 Minishift17ServerEditor (org.jboss.tools.cdk.reddeer.server.ui.editor.Minishift17ServerEditor)1 NewCDKServerWizard (org.jboss.tools.cdk.reddeer.server.ui.wizard.NewCDKServerWizard)1 Before (org.junit.Before)1