PopUpCoachMarkPresenter { protected void setGravityForCoachMarkText(int textAlignmentForPopUpText) { switch (textAlignmentForPopUpText) { case CoachMarkTextGravity.CENTER: mPresentation.setUpGravityForCoachMarkText(CoachMarkTextGravity.CENTER); break; case CoachMarkTextGravity.LEFT: mPresentation.setUpGravityForCoachMarkText(CoachMarkTextGravity.LEFT); break; case CoachMarkTextGravity.RIGHT: mPresentation.setUpGravityForCoachMarkText(CoachMarkTextGravity.RIGHT); break; } } PopUpCoachMarkPresenter(final IStringResourceProvider stringResourceProvider,
                                   final IDimensionResourceProvider dimensionResourceProvider,
                                   final ITypeFaceProvider typeFaceProvider,
                                   final IScreenInfoProvider screenInfoProvider); void onCreate(CoachMarkBuilder coachMarkBuilder); void onCreateView(IPopUpCoachMarkPresentation popUpCoachMarkPresentation); void onViewCreated(); void onDestroyView(); void onDestroy(); void onOkButtonClicked(); void onShimClicked();  }
@Test public void setGravityForCoachMarkTextLeftGravityTest() { mPopUpCoachMarkPresenter.setGravityForCoachMarkText(CoachMarkTextGravity.CENTER); Mockito.verify(mPopUpCoachMarkPresentation, Mockito.times(1)) .setUpGravityForCoachMarkText(CoachMarkTextGravity.CENTER); Mockito.verifyNoMoreInteractions(mPopUpCoachMarkPresentation); }
@Test public void setGravityForCoachMarkTextRightGravityTest() { mPopUpCoachMarkPresenter.setGravityForCoachMarkText(CoachMarkTextGravity.RIGHT); Mockito.verify(mPopUpCoachMarkPresentation, Mockito.times(1)) .setUpGravityForCoachMarkText(CoachMarkTextGravity.RIGHT); Mockito.verifyNoMoreInteractions(mPopUpCoachMarkPresentation); }
@Test public void setGravityForCoachMarkTextCenterGravityTest() { mPopUpCoachMarkPresenter.setGravityForCoachMarkText(CoachMarkTextGravity.LEFT); Mockito.verify(mPopUpCoachMarkPresentation, Mockito.times(1)) .setUpGravityForCoachMarkText(CoachMarkTextGravity.LEFT); Mockito.verifyNoMoreInteractions(mPopUpCoachMarkPresentation); }