@Test public void backButtonPressed_NavigateBack() throws Exception { splashPresenter.backButtonPressed(); verify(eventLogger).send(any(BackButtonOnWelcomeScreenPageTapped.class)); verify(splashView, times(1)).navigateBack(); }
@Override public void backButtonPressed() { eventLogger.send(BackButtonOnWelcomeScreenPageTapped.create()); if (view != null) { view.navigateBack(); } }
SplashPresenter extends BasePresenter<ISplashView> implements ISplashPresenter { @Override public void backButtonPressed() { eventLogger.send(BackButtonOnWelcomeScreenPageTapped.create()); if (view != null) { view.navigateBack(); } } }
SplashPresenter extends BasePresenter<ISplashView> implements ISplashPresenter { @Override public void backButtonPressed() { eventLogger.send(BackButtonOnWelcomeScreenPageTapped.create()); if (view != null) { view.navigateBack(); } } SplashPresenter(@NonNull final AuthDataSource authRepository, @NonNull EventLogger eventLogger); }
SplashPresenter extends BasePresenter<ISplashView> implements ISplashPresenter { @Override public void backButtonPressed() { eventLogger.send(BackButtonOnWelcomeScreenPageTapped.create()); if (view != null) { view.navigateBack(); } } SplashPresenter(@NonNull final AuthDataSource authRepository, @NonNull EventLogger eventLogger); @Override void onAttach(ISplashView view); @Override void getStartedClicked(); @Override void backButtonPressed(); @Override void onAnimationEnded(); }
SplashPresenter extends BasePresenter<ISplashView> implements ISplashPresenter { @Override public void backButtonPressed() { eventLogger.send(BackButtonOnWelcomeScreenPageTapped.create()); if (view != null) { view.navigateBack(); } } SplashPresenter(@NonNull final AuthDataSource authRepository, @NonNull EventLogger eventLogger); @Override void onAttach(ISplashView view); @Override void getStartedClicked(); @Override void backButtonPressed(); @Override void onAnimationEnded();  }