@Test public void testUpdateEmail() { mockVoidResult(true); when(mockFirebaseUser.updateEmail("foo@bar.com")).thenReturn(mockVoidTaskResult); TestObserver obs = TestObserver.create(); RxFirebaseUser.updateEmail(mockFirebaseUser, "foo@bar.com").subscribe(obs); callOnComplete(mockVoidTaskResult); obs.dispose(); callOnComplete(mockVoidTaskResult); obs.assertNoErrors(); obs.assertComplete(); }
@CheckResult @NonNull public static Completable updateEmail(@NonNull FirebaseUser user, @NonNull String email) { return Completable.create(new UserUpdateEmailOnSubscribe(user, email)); }
RxFirebaseUser { @CheckResult @NonNull public static Completable updateEmail(@NonNull FirebaseUser user, @NonNull String email) { return Completable.create(new UserUpdateEmailOnSubscribe(user, email)); } }
RxFirebaseUser { @CheckResult @NonNull public static Completable updateEmail(@NonNull FirebaseUser user, @NonNull String email) { return Completable.create(new UserUpdateEmailOnSubscribe(user, email)); } private  RxFirebaseUser(); }
RxFirebaseUser { @CheckResult @NonNull public static Completable updateEmail(@NonNull FirebaseUser user, @NonNull String email) { return Completable.create(new UserUpdateEmailOnSubscribe(user, email)); } 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 Completable updateEmail(@NonNull FirebaseUser user, @NonNull String email) { return Completable.create(new UserUpdateEmailOnSubscribe(user, email)); } 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);  }