Search in sources :

Example 1 with CDK32ServerEditor

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

the class CDKLaunchConfigurationTest method testMinishiftHomePropagationIntoLaunchConfig.

@Test
public void testMinishiftHomePropagationIntoLaunchConfig() {
    closeLaunchConfig();
    editor.activate();
    LabeledText home = ((CDK32ServerEditor) editor).getMinishiftHomeLabel();
    String homePath = home.getText();
    home.setText(homePath + "Folder");
    performSave(editor.getEditorPart());
    openLaunchConfiguration();
    assertEquals(homePath + "Folder", launchDialog.getValueOfEnvVar("MINISHIFT_HOME"));
}
Also used : LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) CDK32ServerEditor(org.jboss.tools.cdk.reddeer.server.ui.editor.CDK32ServerEditor) CDKServerEditorAbstractTest(org.jboss.tools.cdk.ui.bot.test.server.editor.CDKServerEditorAbstractTest) Test(org.junit.Test)

Example 2 with CDK32ServerEditor

use of org.jboss.tools.cdk.reddeer.server.ui.editor.CDK32ServerEditor 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 3 with CDK32ServerEditor

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

the class CDK32ServerEditorTest method setServerEditor.

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) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning) SystemJobIsRunning(org.jboss.tools.cdk.reddeer.core.condition.SystemJobIsRunning) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Aggregations

CDK32ServerEditor (org.jboss.tools.cdk.reddeer.server.ui.editor.CDK32ServerEditor)3 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)2 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)2 SystemJobIsRunning (org.jboss.tools.cdk.reddeer.core.condition.SystemJobIsRunning)2 CDKServersView (org.jboss.tools.cdk.reddeer.server.ui.CDKServersView)2 LabeledText (org.eclipse.reddeer.swt.impl.text.LabeledText)1 CDKServerEditorAbstractTest (org.jboss.tools.cdk.ui.bot.test.server.editor.CDKServerEditorAbstractTest)1 Test (org.junit.Test)1