public void testUnknowParams() throws Exception { Window uispecDialog = createUISpecWindow(JOB_WITH_UNKNOWN_PARAMS); TextBox runTextBox = uispecDialog.getTextBox(ComponentMatchers.componentLabelFor("run")); assertTrue(runTextBox.textEquals("Unkown parameter")); assertTrue(runTextBox.iconEquals(GuiUtil.loadIcon("error.png"))); assertFalse(uispecDialog.getButton("OK").isEnabled()); }
public void testUnsupportedParams() throws Exception { Window uispecDialog = createUISpecWindow(JOB_WITH_UNSUPPORTED_PARAMS); TextBox runTextBox = uispecDialog.getTextBox(ComponentMatchers.componentLabelFor("run")); assertTrue(runTextBox.textEquals("RunParameterDefinition is unsupported.")); assertTrue(runTextBox.iconEquals(GuiUtil.loadIcon("error.png"))); assertFalse(uispecDialog.getButton("OK").isEnabled()); }