@Test public void postGet() throws Exception { final List<Trip> trips = Arrays.asList(mTrip1, mTrip2); mTripTableActionAlterations.postGet(trips) .test() .assertValue(trips) .assertComplete() .assertNoErrors(); verify(mDatabaseHelper).getTripPriceAndDailyPrice(mTrip1); verify(mDatabaseHelper).getTripPriceAndDailyPrice(mTrip2); }
@NonNull @Override public Single<List<Trip>> postGet(@NonNull final List<Trip> trips) { return Observable.just(trips) .flatMapIterable(trips1 -> trips1) .doOnNext(mDatabaseHelper::getTripPriceAndDailyPrice) .toList(); }
TripTableActionAlterations extends StubTableActionAlterations<Trip> { @NonNull @Override public Single<List<Trip>> postGet(@NonNull final List<Trip> trips) { return Observable.just(trips) .flatMapIterable(trips1 -> trips1) .doOnNext(mDatabaseHelper::getTripPriceAndDailyPrice) .toList(); } }
TripTableActionAlterations extends StubTableActionAlterations<Trip> { @NonNull @Override public Single<List<Trip>> postGet(@NonNull final List<Trip> trips) { return Observable.just(trips) .flatMapIterable(trips1 -> trips1) .doOnNext(mDatabaseHelper::getTripPriceAndDailyPrice) .toList(); } TripTableActionAlterations(@NonNull PersistenceManager persistenceManager);  TripTableActionAlterations(@NonNull DatabaseHelper databaseHelper, @NonNull StorageManager storageManager);  TripTableActionAlterations(@NonNull Table<Trip> tripsTable, @NonNull ReceiptsTable receiptsTable, @NonNull DistanceTable distanceTable,
                                      @NonNull DatabaseHelper databaseHelper, @NonNull StorageManager storageManager); }
TripTableActionAlterations extends StubTableActionAlterations<Trip> { @NonNull @Override public Single<List<Trip>> postGet(@NonNull final List<Trip> trips) { return Observable.just(trips) .flatMapIterable(trips1 -> trips1) .doOnNext(mDatabaseHelper::getTripPriceAndDailyPrice) .toList(); } TripTableActionAlterations(@NonNull PersistenceManager persistenceManager);  TripTableActionAlterations(@NonNull DatabaseHelper databaseHelper, @NonNull StorageManager storageManager);  TripTableActionAlterations(@NonNull Table<Trip> tripsTable, @NonNull ReceiptsTable receiptsTable, @NonNull DistanceTable distanceTable,
                                      @NonNull DatabaseHelper databaseHelper, @NonNull StorageManager storageManager); @NonNull @Override Single<List<Trip>> postGet(@NonNull final List<Trip> trips); @NonNull @Override Single<Trip> postInsert(@NonNull final Trip postInsertTrip); @NonNull @Override Single<Trip> postUpdate(@NonNull final Trip oldTrip, @Nullable final Trip newTrip); @NonNull @Override Single<Trip> postDelete(@Nullable final Trip trip); }
TripTableActionAlterations extends StubTableActionAlterations<Trip> { @NonNull @Override public Single<List<Trip>> postGet(@NonNull final List<Trip> trips) { return Observable.just(trips) .flatMapIterable(trips1 -> trips1) .doOnNext(mDatabaseHelper::getTripPriceAndDailyPrice) .toList(); } TripTableActionAlterations(@NonNull PersistenceManager persistenceManager);  TripTableActionAlterations(@NonNull DatabaseHelper databaseHelper, @NonNull StorageManager storageManager);  TripTableActionAlterations(@NonNull Table<Trip> tripsTable, @NonNull ReceiptsTable receiptsTable, @NonNull DistanceTable distanceTable,
                                      @NonNull DatabaseHelper databaseHelper, @NonNull StorageManager storageManager); @NonNull @Override Single<List<Trip>> postGet(@NonNull final List<Trip> trips); @NonNull @Override Single<Trip> postInsert(@NonNull final Trip postInsertTrip); @NonNull @Override Single<Trip> postUpdate(@NonNull final Trip oldTrip, @Nullable final Trip newTrip); @NonNull @Override Single<Trip> postDelete(@Nullable final Trip trip);  }