AuthPresenter implements AuthContract.Presenter { @Override public void googleSignIn() { mView.showSignInButton(false); mView.setProgressIndicator(true); mView.showGoogleSignInUi(); } @Inject  AuthPresenter(AuthContract.View view); @Override void googleSignIn(); @Override void handleGoogleSignInResult(boolean signedIn); @Override void handleFirebaseSignInResult(boolean signedIn);  }
@Test public void clickSignIn_ShowsProgressBar() { mAuthPresenter.googleSignIn(); verify(mView).setProgressIndicator(true); }
@Test public void clickSignIn_HidesSignInButton() { mAuthPresenter.googleSignIn(); verify(mView).showSignInButton(false); }
@Test public void clickSignIn_TriesToSignInWithGoogle() { mAuthPresenter.googleSignIn(); verify(mView).showGoogleSignInUi(); }