*/
public void testFrame() throws Exception {
// initialise and load
DiagramDocumentEditor editor = initialize();
ShapeNodeEditPart home = assertHasFrame(editor, "Home");
DiagramDocumentEditor frame = openDiagram(home);
assertEditorFrame(frame);
{
ShapeNodeEditPart part = assertHasOperation(frame, "Normal Operation");
ActivityOperation e = (ActivityOperation) part.resolveSemanticElement();
assertFalse(e.isIsGenerated());
assertFalse(e.isOverridden());
GraphicalEditPart name = (GraphicalEditPart) part.getChildren().get(0);
// check the label name
assertEquals("Normal Operation", ((IAccessibleTextAwareEditPart) name).getLabelText());
// and check that it is NOT bold
assertIsBold(name.getFigure().getFont().getFontData(), false);
}
{
ShapeNodeEditPart part = assertHasOperation(frame, "Overridden Operation");
ActivityOperation e = (ActivityOperation) part.resolveSemanticElement();
assertFalse(e.isIsGenerated());
assertTrue(e.isOverridden());
GraphicalEditPart name = (GraphicalEditPart) part.getChildren().get(0);
// check the label name
assertEquals("Overridden Operation", ((IAccessibleTextAwareEditPart) name).getLabelText());
// and check that it is bold