@Test public void postUpdateNull() { final Object oldObject = new Object(); mStubTableActionAlterations.postUpdate(oldObject, null) .test() .assertNoValues() .assertNotComplete() .assertError(Exception.class); }
@NonNull @Override public Single<T> postUpdate(@NonNull T oldT, @Nullable T newT) { return Single.fromCallable(() -> { if (newT == null) { throw new Exception("Post update failed due to a null value"); } return newT; }); }
StubTableActionAlterations implements TableActionAlterations<T> { @NonNull @Override public Single<T> postUpdate(@NonNull T oldT, @Nullable T newT) { return Single.fromCallable(() -> { if (newT == null) { throw new Exception("Post update failed due to a null value"); } return newT; }); } }
StubTableActionAlterations implements TableActionAlterations<T> { @NonNull @Override public Single<T> postUpdate(@NonNull T oldT, @Nullable T newT) { return Single.fromCallable(() -> { if (newT == null) { throw new Exception("Post update failed due to a null value"); } return newT; }); }  }
StubTableActionAlterations implements TableActionAlterations<T> { @NonNull @Override public Single<T> postUpdate(@NonNull T oldT, @Nullable T newT) { return Single.fromCallable(() -> { if (newT == null) { throw new Exception("Post update failed due to a null value"); } return newT; }); }  @NonNull @Override Completable preGet(); @NonNull @Override Single<List<T>> postGet(@NonNull List<T> list); @NonNull @Override Single<T> preInsert(@NonNull T t); @NonNull @Override Single<T> postInsert(@NonNull T t); @NonNull @Override Single<T> preUpdate(@NonNull T oldT, @NonNull T newT); @NonNull @Override Single<T> postUpdate(@NonNull T oldT, @Nullable T newT); @NonNull @Override Single<T> preDelete(@NonNull T t); @NonNull @Override Single<T> postDelete(@Nullable T t); }
StubTableActionAlterations implements TableActionAlterations<T> { @NonNull @Override public Single<T> postUpdate(@NonNull T oldT, @Nullable T newT) { return Single.fromCallable(() -> { if (newT == null) { throw new Exception("Post update failed due to a null value"); } return newT; }); }  @NonNull @Override Completable preGet(); @NonNull @Override Single<List<T>> postGet(@NonNull List<T> list); @NonNull @Override Single<T> preInsert(@NonNull T t); @NonNull @Override Single<T> postInsert(@NonNull T t); @NonNull @Override Single<T> preUpdate(@NonNull T oldT, @NonNull T newT); @NonNull @Override Single<T> postUpdate(@NonNull T oldT, @Nullable T newT); @NonNull @Override Single<T> preDelete(@NonNull T t); @NonNull @Override Single<T> postDelete(@Nullable T t);  }