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();
}
}
Aggregations