@Test public void testThatPromptPresenterPassesReceivedEventsToInjectedEventListener() { final IEvent mockEvent = mock(IEvent.class); promptPresenter.notifyEventTriggered(mockEvent); verify(mockEventListener).notifyEventTriggered(mockEvent); }
@Override public void notifyEventTriggered(@NonNull final IEvent event) { eventListener.notifyEventTriggered(event); for (final IEventListener extraEventListener: extraEventListeners) { extraEventListener.notifyEventTriggered(event); } }
PromptPresenter implements IPromptPresenter { @Override public void notifyEventTriggered(@NonNull final IEvent event) { eventListener.notifyEventTriggered(event); for (final IEventListener extraEventListener: extraEventListeners) { extraEventListener.notifyEventTriggered(event); } } }
PromptPresenter implements IPromptPresenter { @Override public void notifyEventTriggered(@NonNull final IEvent event) { eventListener.notifyEventTriggered(event); for (final IEventListener extraEventListener: extraEventListeners) { extraEventListener.notifyEventTriggered(event); } } PromptPresenter(
            @NonNull final IEventListener eventListener,
            @NonNull final IPromptView promptView); }
PromptPresenter implements IPromptPresenter { @Override public void notifyEventTriggered(@NonNull final IEvent event) { eventListener.notifyEventTriggered(event); for (final IEventListener extraEventListener: extraEventListeners) { extraEventListener.notifyEventTriggered(event); } } PromptPresenter(
            @NonNull final IEventListener eventListener,
            @NonNull final IPromptView promptView); @Override void notifyEventTriggered(@NonNull final IEvent event); @Override void addPromptEventListener(@NonNull final IEventListener promptEventListener); @Override void start(); @Override void reportUserOpinion(@NonNull final UserOpinion userOpinion); @Override void reportUserFeedbackAction(@NonNull final UserFeedbackAction userFeedbackAction); @Override void restoreStateFromBundle(@NonNull final Bundle bundle); @NonNull @Override Bundle generateStateBundle(); }
PromptPresenter implements IPromptPresenter { @Override public void notifyEventTriggered(@NonNull final IEvent event) { eventListener.notifyEventTriggered(event); for (final IEventListener extraEventListener: extraEventListeners) { extraEventListener.notifyEventTriggered(event); } } PromptPresenter(
            @NonNull final IEventListener eventListener,
            @NonNull final IPromptView promptView); @Override void notifyEventTriggered(@NonNull final IEvent event); @Override void addPromptEventListener(@NonNull final IEventListener promptEventListener); @Override void start(); @Override void reportUserOpinion(@NonNull final UserOpinion userOpinion); @Override void reportUserFeedbackAction(@NonNull final UserFeedbackAction userFeedbackAction); @Override void restoreStateFromBundle(@NonNull final Bundle bundle); @NonNull @Override Bundle generateStateBundle();  }