@Test public void testSignInWithCustomToken_NotSuccessful() { mockNotSuccessfulAuthResult(new IllegalStateException()); when(mockFirebaseAuth.signInWithCustomToken("custom_token")).thenReturn(mockAuthResultTask); TestObserver<FirebaseUser> obs = TestObserver.create(); RxFirebaseAuth.signInWithCustomToken(mockFirebaseAuth, "custom_token").subscribe(obs); callOnComplete(mockAuthResultTask); obs.dispose(); callOnComplete(mockAuthResultTask); obs.assertError(IllegalStateException.class); obs.assertNoValues(); }
@CheckResult @NonNull public static Single<FirebaseUser> signInWithCustomToken( @NonNull FirebaseAuth instance, @NonNull String token) { return Single.create(new SignInWithCustomTokenOnSubscribe(instance, token)); }
RxFirebaseAuth { @CheckResult @NonNull public static Single<FirebaseUser> signInWithCustomToken( @NonNull FirebaseAuth instance, @NonNull String token) { return Single.create(new SignInWithCustomTokenOnSubscribe(instance, token)); } }
RxFirebaseAuth { @CheckResult @NonNull public static Single<FirebaseUser> signInWithCustomToken( @NonNull FirebaseAuth instance, @NonNull String token) { return Single.create(new SignInWithCustomTokenOnSubscribe(instance, token)); } private  RxFirebaseAuth(); }
RxFirebaseAuth { @CheckResult @NonNull public static Single<FirebaseUser> signInWithCustomToken( @NonNull FirebaseAuth instance, @NonNull String token) { return Single.create(new SignInWithCustomTokenOnSubscribe(instance, token)); } private  RxFirebaseAuth(); @CheckResult @NonNull static Observable<FirebaseAuth> authStateChanges(
      @NonNull FirebaseAuth instance); @CheckResult @NonNull static Single<FirebaseUser> createUserWithEmailAndPassword(
      @NonNull FirebaseAuth instance, @NonNull String email, @NonNull String password); @CheckResult @NonNull static Maybe<List<String>> fetchProvidersForEmail(
      @NonNull FirebaseAuth instance, @NonNull String email); @CheckResult @NonNull static Maybe<FirebaseUser> getCurrentUser(
      @NonNull final FirebaseAuth instance); @CheckResult @NonNull static Completable sendPasswordResetEmail(
      @NonNull FirebaseAuth instance, @NonNull String email); @CheckResult @NonNull static Single<FirebaseUser> signInAnonymously(
      @NonNull FirebaseAuth instance); @CheckResult @NonNull static Single<FirebaseUser> signInWithCredential(
      @NonNull FirebaseAuth instance, @NonNull AuthCredential credential); @CheckResult @NonNull static Single<FirebaseUser> signInWithCustomToken(
      @NonNull FirebaseAuth instance, @NonNull String token); @CheckResult @NonNull static Single<FirebaseUser> signInWithEmailAndPassword(
      @NonNull FirebaseAuth instance, @NonNull String email, @NonNull String password); @CheckResult @NonNull static Completable signOut(@NonNull FirebaseAuth instance); @CheckResult @NonNull static Completable applyActionCode(@NonNull FirebaseAuth instance,
      @NonNull String code); @CheckResult @NonNull static Single<ActionCodeResult> checkActionCode(
      @NonNull FirebaseAuth instance, @NonNull String code); @CheckResult @NonNull static Completable confirmPasswordReset(
      @NonNull FirebaseAuth instance, @NonNull String code, @NonNull String newPassword); @CheckResult @NonNull static Single<String> verifyPasswordResetCode(
      @NonNull FirebaseAuth instance, @NonNull String code); }
RxFirebaseAuth { @CheckResult @NonNull public static Single<FirebaseUser> signInWithCustomToken( @NonNull FirebaseAuth instance, @NonNull String token) { return Single.create(new SignInWithCustomTokenOnSubscribe(instance, token)); } private  RxFirebaseAuth(); @CheckResult @NonNull static Observable<FirebaseAuth> authStateChanges(
      @NonNull FirebaseAuth instance); @CheckResult @NonNull static Single<FirebaseUser> createUserWithEmailAndPassword(
      @NonNull FirebaseAuth instance, @NonNull String email, @NonNull String password); @CheckResult @NonNull static Maybe<List<String>> fetchProvidersForEmail(
      @NonNull FirebaseAuth instance, @NonNull String email); @CheckResult @NonNull static Maybe<FirebaseUser> getCurrentUser(
      @NonNull final FirebaseAuth instance); @CheckResult @NonNull static Completable sendPasswordResetEmail(
      @NonNull FirebaseAuth instance, @NonNull String email); @CheckResult @NonNull static Single<FirebaseUser> signInAnonymously(
      @NonNull FirebaseAuth instance); @CheckResult @NonNull static Single<FirebaseUser> signInWithCredential(
      @NonNull FirebaseAuth instance, @NonNull AuthCredential credential); @CheckResult @NonNull static Single<FirebaseUser> signInWithCustomToken(
      @NonNull FirebaseAuth instance, @NonNull String token); @CheckResult @NonNull static Single<FirebaseUser> signInWithEmailAndPassword(
      @NonNull FirebaseAuth instance, @NonNull String email, @NonNull String password); @CheckResult @NonNull static Completable signOut(@NonNull FirebaseAuth instance); @CheckResult @NonNull static Completable applyActionCode(@NonNull FirebaseAuth instance,
      @NonNull String code); @CheckResult @NonNull static Single<ActionCodeResult> checkActionCode(
      @NonNull FirebaseAuth instance, @NonNull String code); @CheckResult @NonNull static Completable confirmPasswordReset(
      @NonNull FirebaseAuth instance, @NonNull String code, @NonNull String newPassword); @CheckResult @NonNull static Single<String> verifyPasswordResetCode(
      @NonNull FirebaseAuth instance, @NonNull String code);  }