use of com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker in project storio by pushtorefresh.
the class PreparedDeleteByQueryTest method deleteByQueryCompletableExecutesOnSpecifiedScheduler.
@Test
public void deleteByQueryCompletableExecutesOnSpecifiedScheduler() {
final DeleteByQueryStub deleteStub = DeleteByQueryStub.newInstance();
final SchedulerChecker schedulerChecker = SchedulerChecker.create(deleteStub.storIOContentResolver);
final PreparedDeleteByQuery operation = deleteStub.storIOContentResolver.delete().byQuery(deleteStub.deleteQuery).withDeleteResolver(deleteStub.deleteResolver).prepare();
schedulerChecker.checkAsCompletable(operation);
}
use of com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker in project storio by pushtorefresh.
the class PreparedDeleteByQueryTest method deleteByQueryFlowableExecutesOnSpecifiedScheduler.
@Test
public void deleteByQueryFlowableExecutesOnSpecifiedScheduler() {
final DeleteByQueryStub deleteStub = DeleteByQueryStub.newInstance();
final SchedulerChecker schedulerChecker = SchedulerChecker.create(deleteStub.storIOContentResolver);
final PreparedDeleteByQuery operation = deleteStub.storIOContentResolver.delete().byQuery(deleteStub.deleteQuery).withDeleteResolver(deleteStub.deleteResolver).prepare();
schedulerChecker.checkAsFlowable(operation);
}
use of com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker in project storio by pushtorefresh.
the class PreparedPutContentValuesTest method putContentValuesFlowableExecutesOnSpecifiedScheduler.
@Test
public void putContentValuesFlowableExecutesOnSpecifiedScheduler() {
final PutContentValuesStub putStub = PutContentValuesStub.newPutStubForOneContentValues();
final SchedulerChecker schedulerChecker = SchedulerChecker.create(putStub.storIOContentResolver);
final PreparedPutContentValues operation = putStub.storIOContentResolver.put().contentValues(putStub.contentValues.get(0)).withPutResolver(putStub.putResolver).prepare();
schedulerChecker.checkAsFlowable(operation);
}
use of com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker in project storio by pushtorefresh.
the class PreparedGetNumberOfResultsTest method getNumberOfResultsSingleExecutesOnSpecifiedScheduler.
@Test
public void getNumberOfResultsSingleExecutesOnSpecifiedScheduler() {
final GetNumberOfResultsStub getStub = GetNumberOfResultsStub.newInstance();
final SchedulerChecker schedulerChecker = SchedulerChecker.create(getStub.storIOSQLite);
final PreparedGetNumberOfResults operation = getStub.storIOSQLite.get().numberOfResults().withQuery(getStub.query).withGetResolver(getStub.getResolverForNumberOfResults).prepare();
schedulerChecker.checkAsSingle(operation);
}
use of com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker in project storio by pushtorefresh.
the class PreparedPutContentValuesIterableTest method putMultipleFlowableExecutesOnSpecifiedScheduler.
@Test
public void putMultipleFlowableExecutesOnSpecifiedScheduler() {
final PutContentValuesStub putStub = PutContentValuesStub.newPutStubForMultipleContentValues(true);
final SchedulerChecker schedulerChecker = SchedulerChecker.create(putStub.storIOSQLite);
final PreparedPutContentValuesIterable operation = putStub.storIOSQLite.put().contentValues(putStub.contentValues).withPutResolver(putStub.putResolver).prepare();
schedulerChecker.checkAsFlowable(operation);
}
Aggregations