@Test public void testUnlink_notSuccessful() { mockNotSuccessfulAuthResult(new IllegalStateException()); when(mockFirebaseUser.unlink("provider")).thenReturn(mockAuthTaskResult); TestObserver<AuthResult> obs = TestObserver.create(); RxFirebaseUser.unlink(mockFirebaseUser, "provider").subscribe(obs); callOnComplete(mockAuthTaskResult); obs.dispose(); callOnComplete(mockAuthTaskResult); obs.assertError(IllegalStateException.class); obs.assertNoValues(); }
@CheckResult @NonNull public static Single<AuthResult> unlink(@NonNull FirebaseUser user, @NonNull String provider) { return Single.create(new UserUnlinkOnSubscribe(user, provider)); }
RxFirebaseUser { @CheckResult @NonNull public static Single<AuthResult> unlink(@NonNull FirebaseUser user, @NonNull String provider) { return Single.create(new UserUnlinkOnSubscribe(user, provider)); } }
RxFirebaseUser { @CheckResult @NonNull public static Single<AuthResult> unlink(@NonNull FirebaseUser user, @NonNull String provider) { return Single.create(new UserUnlinkOnSubscribe(user, provider)); } private  RxFirebaseUser(); }
RxFirebaseUser { @CheckResult @NonNull public static Single<AuthResult> unlink(@NonNull FirebaseUser user, @NonNull String provider) { return Single.create(new UserUnlinkOnSubscribe(user, provider)); } private  RxFirebaseUser(); @CheckResult @NonNull static Completable delete(@NonNull FirebaseUser user); @CheckResult @NonNull static Single<String> getToken(@NonNull FirebaseUser user,
      boolean forceRefresh); @CheckResult @NonNull static Single<AuthResult> linkWithCredential(
      @NonNull FirebaseUser user, @NonNull AuthCredential credential); @CheckResult @NonNull static Completable reauthenticate(@NonNull FirebaseUser user,
      @NonNull AuthCredential credential); @CheckResult @NonNull static Completable reload(@NonNull FirebaseUser user); @CheckResult @NonNull static Completable sendEmailVerification(
      @NonNull FirebaseUser user); @CheckResult @NonNull static Single<AuthResult> unlink(@NonNull FirebaseUser user,
      @NonNull String provider); @CheckResult @NonNull static Completable updateEmail(@NonNull FirebaseUser user,
      @NonNull String email); @CheckResult @NonNull static Completable updatePassword(@NonNull FirebaseUser user,
      @NonNull String password); @CheckResult @NonNull static Completable updateProfile(@NonNull FirebaseUser user,
      @NonNull UserProfileChangeRequest request); }
RxFirebaseUser { @CheckResult @NonNull public static Single<AuthResult> unlink(@NonNull FirebaseUser user, @NonNull String provider) { return Single.create(new UserUnlinkOnSubscribe(user, provider)); } private  RxFirebaseUser(); @CheckResult @NonNull static Completable delete(@NonNull FirebaseUser user); @CheckResult @NonNull static Single<String> getToken(@NonNull FirebaseUser user,
      boolean forceRefresh); @CheckResult @NonNull static Single<AuthResult> linkWithCredential(
      @NonNull FirebaseUser user, @NonNull AuthCredential credential); @CheckResult @NonNull static Completable reauthenticate(@NonNull FirebaseUser user,
      @NonNull AuthCredential credential); @CheckResult @NonNull static Completable reload(@NonNull FirebaseUser user); @CheckResult @NonNull static Completable sendEmailVerification(
      @NonNull FirebaseUser user); @CheckResult @NonNull static Single<AuthResult> unlink(@NonNull FirebaseUser user,
      @NonNull String provider); @CheckResult @NonNull static Completable updateEmail(@NonNull FirebaseUser user,
      @NonNull String email); @CheckResult @NonNull static Completable updatePassword(@NonNull FirebaseUser user,
      @NonNull String password); @CheckResult @NonNull static Completable updateProfile(@NonNull FirebaseUser user,
      @NonNull UserProfileChangeRequest request);  }