@Test public void multipleEditDoesNotCallListenerBeforeFinishing() { controller.startMultipleEdits(); controller.addEdit(undoableEdit1); verify(listener, never()).undoableEditHappened(any(UndoableEditEvent.class)); }
public final void startMultipleEdits() { multipleEdits.clear(); registerMultipleEdits = true; }
AbstractPetriNetComponentController { public final void startMultipleEdits() { multipleEdits.clear(); registerMultipleEdits = true; } }
AbstractPetriNetComponentController { public final void startMultipleEdits() { multipleEdits.clear(); registerMultipleEdits = true; } protected  AbstractPetriNetComponentController(T component, UndoableEditListener listener); }
AbstractPetriNetComponentController { public final void startMultipleEdits() { multipleEdits.clear(); registerMultipleEdits = true; } protected  AbstractPetriNetComponentController(T component, UndoableEditListener listener); final void setId(String newId); final void startMultipleEdits(); final void finishMultipleEdits(); }
AbstractPetriNetComponentController { public final void startMultipleEdits() { multipleEdits.clear(); registerMultipleEdits = true; } protected  AbstractPetriNetComponentController(T component, UndoableEditListener listener); final void setId(String newId); final void startMultipleEdits(); final void finishMultipleEdits();  }