@Test public void postDelete() { alterations.postDelete(category1) .test() .assertValue(category1) .assertComplete() .assertNoErrors(); verify(receiptsTable).clearCache(); }
@NonNull @Override public Single<Category> postDelete(@Nullable Category category) { return super.postDelete(category) .doOnSuccess(ignored -> receiptsTable.clearCache()); }
CategoriesTableActionAlterations extends StubTableActionAlterations<Category> { @NonNull @Override public Single<Category> postDelete(@Nullable Category category) { return super.postDelete(category) .doOnSuccess(ignored -> receiptsTable.clearCache()); } }
CategoriesTableActionAlterations extends StubTableActionAlterations<Category> { @NonNull @Override public Single<Category> postDelete(@Nullable Category category) { return super.postDelete(category) .doOnSuccess(ignored -> receiptsTable.clearCache()); } CategoriesTableActionAlterations(@NonNull ReceiptsTable receiptsTable); }
CategoriesTableActionAlterations extends StubTableActionAlterations<Category> { @NonNull @Override public Single<Category> postDelete(@Nullable Category category) { return super.postDelete(category) .doOnSuccess(ignored -> receiptsTable.clearCache()); } CategoriesTableActionAlterations(@NonNull ReceiptsTable receiptsTable); @NonNull @Override Single<Category> postUpdate(@NonNull Category oldCategory, @Nullable Category newCategory); @NonNull @Override Single<Category> postDelete(@Nullable Category category); }
CategoriesTableActionAlterations extends StubTableActionAlterations<Category> { @NonNull @Override public Single<Category> postDelete(@Nullable Category category) { return super.postDelete(category) .doOnSuccess(ignored -> receiptsTable.clearCache()); } CategoriesTableActionAlterations(@NonNull ReceiptsTable receiptsTable); @NonNull @Override Single<Category> postUpdate(@NonNull Category oldCategory, @Nullable Category newCategory); @NonNull @Override Single<Category> postDelete(@Nullable Category category);  }