HOP-GUI - Unit test remains active after detaching, you have to close and reopen the pipeline to really detach.
@@ -824,7 +824,7 @@ public class TestingGuiPlugin {
//
Map<String, Object> stateMap = getStateMap(pipelineMeta);
if (stateMap != null) {
- stateMap.remove(DataSetConst.STATE_KEY_ACTIVE_UNIT_TEST);
+ stateMap.clear();
}
// Clear the combo box
@@ -834,6 +834,11 @@ public class TestingGuiPlugin {
combo.setText("");
}
+ // Also clear the unit test variables from the pipelineGraph instance.
+ //
+ pipelineGraph.getVariables().setVariable(DataSetConst.VAR_RUN_UNIT_TEST, "N");
+ pipelineGraph.getVariables().setVariable(DataSetConst.VAR_UNIT_TEST_NAME, null);
+
// Update the GUI
//
pipelineGraph.updateGui();
