Search in sources :

Example 1 with CDKPart

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

the class CDKServerEditorAbstractTest method checkEditorStateAfterSave.

protected void checkEditorStateAfterSave(String location, boolean canSave) {
    LabeledText label = ((CDKPart) editor).getMinishiftBinaryLabel();
    label.setText(location);
    new WaitUntil(new SystemJobIsRunning(getJobMatcher(MINISHIFT_VALIDATION_JOB)), TimePeriod.SHORT, false);
    new WaitWhile(new SystemJobIsRunning(getJobMatcher(MINISHIFT_VALIDATION_JOB)), TimePeriod.DEFAULT, false);
    if (canSave) {
        verifyEditorCanSave();
    } else {
        verifyEditorCannotSave();
    }
}
Also used : SystemJobIsRunning(org.jboss.tools.cdk.reddeer.core.condition.SystemJobIsRunning) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) CDKPart(org.jboss.tools.cdk.reddeer.server.ui.editor.CDKPart) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Aggregations

WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)1 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)1 LabeledText (org.eclipse.reddeer.swt.impl.text.LabeledText)1 SystemJobIsRunning (org.jboss.tools.cdk.reddeer.core.condition.SystemJobIsRunning)1 CDKPart (org.jboss.tools.cdk.reddeer.server.ui.editor.CDKPart)1