@Test public void changesAnnotationText() { String changedText = "This text has changed"; controller.setText(changedText); verify(annotation).setText(changedText); }
public void setText(String text) { String oldText = component.getText(); component.setText(text); registerUndoableEdit(new ChangeAnnotationText(component, oldText, text)); }
AnnotationController extends AbstractPetriNetComponentController<Annotation> { public void setText(String text) { String oldText = component.getText(); component.setText(text); registerUndoableEdit(new ChangeAnnotationText(component, oldText, text)); } }
AnnotationController extends AbstractPetriNetComponentController<Annotation> { public void setText(String text) { String oldText = component.getText(); component.setText(text); registerUndoableEdit(new ChangeAnnotationText(component, oldText, text)); } AnnotationController(Annotation component, UndoableEditListener listener); }
AnnotationController extends AbstractPetriNetComponentController<Annotation> { public void setText(String text) { String oldText = component.getText(); component.setText(text); registerUndoableEdit(new ChangeAnnotationText(component, oldText, text)); } AnnotationController(Annotation component, UndoableEditListener listener); String getText(); void setText(String text); }
AnnotationController extends AbstractPetriNetComponentController<Annotation> { public void setText(String text) { String oldText = component.getText(); component.setText(text); registerUndoableEdit(new ChangeAnnotationText(component, oldText, text)); } AnnotationController(Annotation component, UndoableEditListener listener); String getText(); void setText(String text);  }