@Test public void testThatPresenterInstructsPromptViewToRequestCriticalFeedbackWhenUserReportsCriticalOpinion() { promptPresenter.reportUserOpinion(IPromptPresenter.UserOpinion.CRITICAL); final InOrder inOrder = inOrder(mockPromptView); inOrder.verify(mockPromptView).requestCriticalFeedback(); inOrder.verifyNoMoreInteractions(); }
@Override public void reportUserOpinion(@NonNull final UserOpinion userOpinion) { if (userOpinion == UserOpinion.POSITIVE) { notifyEventTriggered(PromptInteractionEvent.USER_INDICATED_POSITIVE_OPINION); setToState(PromptFlowState.REQUESTING_POSITIVE_FEEDBACK); } else if (userOpinion == UserOpinion.CRITICAL) { notifyEventTriggered(PromptInteractionEvent.USER_INDICATED_CRITICAL_OPINION); setToState(PromptFlowState.REQUESTING_CRITICAL_FEEDBACK); } }
PromptPresenter implements IPromptPresenter { @Override public void reportUserOpinion(@NonNull final UserOpinion userOpinion) { if (userOpinion == UserOpinion.POSITIVE) { notifyEventTriggered(PromptInteractionEvent.USER_INDICATED_POSITIVE_OPINION); setToState(PromptFlowState.REQUESTING_POSITIVE_FEEDBACK); } else if (userOpinion == UserOpinion.CRITICAL) { notifyEventTriggered(PromptInteractionEvent.USER_INDICATED_CRITICAL_OPINION); setToState(PromptFlowState.REQUESTING_CRITICAL_FEEDBACK); } } }
PromptPresenter implements IPromptPresenter { @Override public void reportUserOpinion(@NonNull final UserOpinion userOpinion) { if (userOpinion == UserOpinion.POSITIVE) { notifyEventTriggered(PromptInteractionEvent.USER_INDICATED_POSITIVE_OPINION); setToState(PromptFlowState.REQUESTING_POSITIVE_FEEDBACK); } else if (userOpinion == UserOpinion.CRITICAL) { notifyEventTriggered(PromptInteractionEvent.USER_INDICATED_CRITICAL_OPINION); setToState(PromptFlowState.REQUESTING_CRITICAL_FEEDBACK); } } PromptPresenter(
            @NonNull final IEventListener eventListener,
            @NonNull final IPromptView promptView); }
PromptPresenter implements IPromptPresenter { @Override public void reportUserOpinion(@NonNull final UserOpinion userOpinion) { if (userOpinion == UserOpinion.POSITIVE) { notifyEventTriggered(PromptInteractionEvent.USER_INDICATED_POSITIVE_OPINION); setToState(PromptFlowState.REQUESTING_POSITIVE_FEEDBACK); } else if (userOpinion == UserOpinion.CRITICAL) { notifyEventTriggered(PromptInteractionEvent.USER_INDICATED_CRITICAL_OPINION); setToState(PromptFlowState.REQUESTING_CRITICAL_FEEDBACK); } } 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 reportUserOpinion(@NonNull final UserOpinion userOpinion) { if (userOpinion == UserOpinion.POSITIVE) { notifyEventTriggered(PromptInteractionEvent.USER_INDICATED_POSITIVE_OPINION); setToState(PromptFlowState.REQUESTING_POSITIVE_FEEDBACK); } else if (userOpinion == UserOpinion.CRITICAL) { notifyEventTriggered(PromptInteractionEvent.USER_INDICATED_CRITICAL_OPINION); setToState(PromptFlowState.REQUESTING_CRITICAL_FEEDBACK); } } 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();  }