Here are the examples of the java api class com.google.android.gms.auth.UserRecoverableAuthException taken from open source projects.
1. SignInPresenterTest#signInFailedWithUserRecoverableException()
Project: ribot-app-android
File: SignInPresenterTest.java
File: SignInPresenterTest.java
@Test public void signInFailedWithUserRecoverableException() { //Stub mock data manager Intent intent = new Intent(); UserRecoverableAuthException exception = new UserRecoverableAuthException("error", intent); stubDataManagerSignIn(Observable.error(exception)); mSignInPresenter.signInWithGoogle(mAccount); //Check that the right methods are called verify(mMockSignInMvpView).showProgress(true); verify(mMockSignInMvpView).onUserRecoverableAuthException(any(Intent.class)); verify(mMockSignInMvpView).showProgress(false); verify(mMockSignInMvpView).setSignInButtonEnabled(false); }