// directly, there is a button and a static value
ShapeNodeEditPart button = assertHasButton(editor_page, "direct");
// open the button
DiagramDocumentEditor editor_button = openDiagram(button);
try {
// it has an event trigger onChange (not a shortcut)
ShapeNodeEditPart event = assertHasEvent(editor_button, false, ModelPackage.eINSTANCE.getChangeable_OnChange());
// there is a shortcutted operation
ShapeNodeEditPart op = assertHasActivityOperation(editor_button, "some operation", true);
// the event is connected to the op by a RunAction
ConnectionNodeEditPart run = assertHasECARule(editor_button, event, op, "run");
// there is also a shortcutted StaticValue, which is the parameter
ShapeNodeEditPart staticValue = assertHasValue(editor_button, "parameter", true);
// which is connected to the RunAction
assertHasParameter(editor_button, staticValue, run);
// there should only be three children (as above)
assertEditorHasChildren(3, editor_button);
} finally {
editor_button.close(false);
}
} finally {
editor_page.close(false);
}
}