@Test public void testGetToken() { mockSuccessfulTokenResult("token"); when(mockFirebaseUser.getToken(true)).thenReturn(mockGetTokenTaskResult); TestObserver<String> obs = TestObserver.create(); RxFirebaseUser.getToken(mockFirebaseUser, true).subscribe(obs); callOnComplete(mockGetTokenTaskResult); obs.dispose(); callOnComplete(mockGetTokenTaskResult); obs.assertNoErrors(); obs.assertComplete(); obs.assertValue("token"); }
@CheckResult @NonNull public static Single<String> getToken(@NonNull FirebaseUser user, boolean forceRefresh) { return Single.create(new UserGetTokenOnSubscribe(user, forceRefresh)); }
RxFirebaseUser { @CheckResult @NonNull public static Single<String> getToken(@NonNull FirebaseUser user, boolean forceRefresh) { return Single.create(new UserGetTokenOnSubscribe(user, forceRefresh)); } }
RxFirebaseUser { @CheckResult @NonNull public static Single<String> getToken(@NonNull FirebaseUser user, boolean forceRefresh) { return Single.create(new UserGetTokenOnSubscribe(user, forceRefresh)); } private  RxFirebaseUser(); }
RxFirebaseUser { @CheckResult @NonNull public static Single<String> getToken(@NonNull FirebaseUser user, boolean forceRefresh) { return Single.create(new UserGetTokenOnSubscribe(user, forceRefresh)); } 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<String> getToken(@NonNull FirebaseUser user, boolean forceRefresh) { return Single.create(new UserGetTokenOnSubscribe(user, forceRefresh)); } 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);  }