@Test public void testOnCanvasElementUpdated() { observer.init(presenter); observer.onCanvasElementUpdated(new CanvasElementUpdatedEvent(canvasHandler, element)); verify(presenter).refresh(); }
void onCanvasElementUpdated(final @Observes CanvasElementUpdatedEvent event) { getOptionalPresenter().ifPresent(DecisionNavigatorPresenter::refresh); }
DecisionNavigatorObserver { void onCanvasElementUpdated(final @Observes CanvasElementUpdatedEvent event) { getOptionalPresenter().ifPresent(DecisionNavigatorPresenter::refresh); } }
DecisionNavigatorObserver { void onCanvasElementUpdated(final @Observes CanvasElementUpdatedEvent event) { getOptionalPresenter().ifPresent(DecisionNavigatorPresenter::refresh); }  }
DecisionNavigatorObserver { void onCanvasElementUpdated(final @Observes CanvasElementUpdatedEvent event) { getOptionalPresenter().ifPresent(DecisionNavigatorPresenter::refresh); }  void init(final DecisionNavigatorPresenter presenter); }
DecisionNavigatorObserver { void onCanvasElementUpdated(final @Observes CanvasElementUpdatedEvent event) { getOptionalPresenter().ifPresent(DecisionNavigatorPresenter::refresh); }  void init(final DecisionNavigatorPresenter presenter);  }