@Test public void testWantToSignUp() throws Exception { mPresenter.wantToSignUp("baldomero", "llegateligero"); verify(mView).onLoadingStarted(); verify(mInteractor).doSignUp("baldomero", "llegateligero"); }
@Override public void wantToSignUp(String email, String password) { if (mView != null) { mView.onLoadingStarted(); } mInteractor.doSignUp(email, password); }
LoginPresenterImpl implements LoginPresenter { @Override public void wantToSignUp(String email, String password) { if (mView != null) { mView.onLoadingStarted(); } mInteractor.doSignUp(email, password); } }
LoginPresenterImpl implements LoginPresenter { @Override public void wantToSignUp(String email, String password) { if (mView != null) { mView.onLoadingStarted(); } mInteractor.doSignUp(email, password); } LoginPresenterImpl(); @VisibleForTesting  LoginPresenterImpl(LoginView view, LoginInteractor interactor, EventBus eventBus); }
LoginPresenterImpl implements LoginPresenter { @Override public void wantToSignUp(String email, String password) { if (mView != null) { mView.onLoadingStarted(); } mInteractor.doSignUp(email, password); } LoginPresenterImpl(); @VisibleForTesting  LoginPresenterImpl(LoginView view, LoginInteractor interactor, EventBus eventBus); @Override void wantToSignIn(String email, String password); @Override void wantToSignUp(String email, String password); @Override void wantToCheckAuthenticated(); @Override void onViewAttached(LoginView view); @Override void onViewDetached(); @Override void onViewDestroyed(); @Subscribe void onSignedIn(SignedInEvent event); @Subscribe void onErrorSigningIn(ErrorSigningInEvent event); @Subscribe void onSignedUp(SignedUpEvent event); @Subscribe void onErrorSigningUp(ErrorSigningUpEvent event); @Subscribe void onAuthenticated(AuthenticatedEvent event); }
LoginPresenterImpl implements LoginPresenter { @Override public void wantToSignUp(String email, String password) { if (mView != null) { mView.onLoadingStarted(); } mInteractor.doSignUp(email, password); } LoginPresenterImpl(); @VisibleForTesting  LoginPresenterImpl(LoginView view, LoginInteractor interactor, EventBus eventBus); @Override void wantToSignIn(String email, String password); @Override void wantToSignUp(String email, String password); @Override void wantToCheckAuthenticated(); @Override void onViewAttached(LoginView view); @Override void onViewDetached(); @Override void onViewDestroyed(); @Subscribe void onSignedIn(SignedInEvent event); @Subscribe void onErrorSigningIn(ErrorSigningInEvent event); @Subscribe void onSignedUp(SignedUpEvent event); @Subscribe void onErrorSigningUp(ErrorSigningUpEvent event); @Subscribe void onAuthenticated(AuthenticatedEvent event);  }