@Test public void testUpdateChildren_notSuccessful() { Map<String, Object> map = new HashMap<>(); when(mockDatabaseReference.updateChildren(map)).thenReturn(mockTask); TestObserver sub = TestObserver.create(); RxFirebaseDatabase.updateChildren(mockDatabaseReference, map).subscribe(sub); verifyAddOnCompleteListenerForTask(); callTaskOnCompleteWithError(new IllegalStateException()); sub.assertNotComplete(); sub.assertError(IllegalStateException.class); sub.dispose(); }
@NonNull @CheckResult public static Completable updateChildren(@NonNull DatabaseReference ref, @NonNull Map<String, Object> update) { return Completable.create(new UpdateChildrenOnSubscribe(ref, update)); }
RxFirebaseDatabase { @NonNull @CheckResult public static Completable updateChildren(@NonNull DatabaseReference ref, @NonNull Map<String, Object> update) { return Completable.create(new UpdateChildrenOnSubscribe(ref, update)); } }
RxFirebaseDatabase { @NonNull @CheckResult public static Completable updateChildren(@NonNull DatabaseReference ref, @NonNull Map<String, Object> update) { return Completable.create(new UpdateChildrenOnSubscribe(ref, update)); } private  RxFirebaseDatabase(); }
RxFirebaseDatabase { @NonNull @CheckResult public static Completable updateChildren(@NonNull DatabaseReference ref, @NonNull Map<String, Object> update) { return Completable.create(new UpdateChildrenOnSubscribe(ref, update)); } private  RxFirebaseDatabase(); @NonNull @CheckResult static Observable<ChildEvent> childEvents(
      @NonNull DatabaseReference ref); @NonNull @CheckResult static Single<DataSnapshot> data(@NonNull DatabaseReference ref); @NonNull @CheckResult static Observable<DataSnapshot> dataChanges(
      @NonNull DatabaseReference ref); @NonNull @CheckResult static Observable<Optional<T>> dataChangesOf(
      @NonNull DatabaseReference ref, @NonNull Class<T> clazz); @NonNull @CheckResult static Observable<Optional<T>> dataChangesOf(
      @NonNull DatabaseReference ref, @NonNull GenericTypeIndicator<T> typeIndicator); @NonNull @CheckResult static Single<Optional<T>> dataOf(@NonNull DatabaseReference ref,
      @NonNull Class<T> clazz); @NonNull @CheckResult static Single<Optional<T>> dataOf(@NonNull DatabaseReference ref,
      @NonNull GenericTypeIndicator<T> typeIndicator); @NonNull @CheckResult static Completable removeValue(@NonNull DatabaseReference ref); @NonNull @CheckResult static Completable setPriority(@NonNull DatabaseReference ref,
      @NonNull Object priority); @NonNull @CheckResult static Completable setValue(@NonNull DatabaseReference ref,
      @Nullable T value); @NonNull @CheckResult static Completable setValue(@NonNull DatabaseReference ref,
      @Nullable T value, @NonNull Object priority); @NonNull @CheckResult static Completable runTransaction(@NonNull DatabaseReference ref,
      @NonNull Function<MutableData, Transaction.Result> task); @NonNull @CheckResult static Completable runTransaction(@NonNull DatabaseReference ref,
      boolean fireLocalEvents, @NonNull Function<MutableData, Transaction.Result> task); @NonNull @CheckResult static Completable updateChildren(@NonNull DatabaseReference ref,
      @NonNull Map<String, Object> update); }
RxFirebaseDatabase { @NonNull @CheckResult public static Completable updateChildren(@NonNull DatabaseReference ref, @NonNull Map<String, Object> update) { return Completable.create(new UpdateChildrenOnSubscribe(ref, update)); } private  RxFirebaseDatabase(); @NonNull @CheckResult static Observable<ChildEvent> childEvents(
      @NonNull DatabaseReference ref); @NonNull @CheckResult static Single<DataSnapshot> data(@NonNull DatabaseReference ref); @NonNull @CheckResult static Observable<DataSnapshot> dataChanges(
      @NonNull DatabaseReference ref); @NonNull @CheckResult static Observable<Optional<T>> dataChangesOf(
      @NonNull DatabaseReference ref, @NonNull Class<T> clazz); @NonNull @CheckResult static Observable<Optional<T>> dataChangesOf(
      @NonNull DatabaseReference ref, @NonNull GenericTypeIndicator<T> typeIndicator); @NonNull @CheckResult static Single<Optional<T>> dataOf(@NonNull DatabaseReference ref,
      @NonNull Class<T> clazz); @NonNull @CheckResult static Single<Optional<T>> dataOf(@NonNull DatabaseReference ref,
      @NonNull GenericTypeIndicator<T> typeIndicator); @NonNull @CheckResult static Completable removeValue(@NonNull DatabaseReference ref); @NonNull @CheckResult static Completable setPriority(@NonNull DatabaseReference ref,
      @NonNull Object priority); @NonNull @CheckResult static Completable setValue(@NonNull DatabaseReference ref,
      @Nullable T value); @NonNull @CheckResult static Completable setValue(@NonNull DatabaseReference ref,
      @Nullable T value, @NonNull Object priority); @NonNull @CheckResult static Completable runTransaction(@NonNull DatabaseReference ref,
      @NonNull Function<MutableData, Transaction.Result> task); @NonNull @CheckResult static Completable runTransaction(@NonNull DatabaseReference ref,
      boolean fireLocalEvents, @NonNull Function<MutableData, Transaction.Result> task); @NonNull @CheckResult static Completable updateChildren(@NonNull DatabaseReference ref,
      @NonNull Map<String, Object> update);  }