use of com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker in project storio by pushtorefresh.
the class PreparedDeleteByQueryTest method deleteByQueryCompletableExecutesOnSpecifiedScheduler.
@Test
public void deleteByQueryCompletableExecutesOnSpecifiedScheduler() {
final DeleteByQueryStub stub = new DeleteByQueryStub();
final SchedulerChecker schedulerChecker = SchedulerChecker.create(stub.storIOSQLite);
final PreparedDeleteByQuery operation = new PreparedDeleteByQuery.Builder(stub.storIOSQLite, stub.deleteQuery).withDeleteResolver(stub.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 stub = new DeleteByQueryStub();
final SchedulerChecker schedulerChecker = SchedulerChecker.create(stub.storIOSQLite);
final PreparedDeleteByQuery operation = new PreparedDeleteByQuery.Builder(stub.storIOSQLite, stub.deleteQuery).withDeleteResolver(stub.deleteResolver).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.storIOContentResolver);
final PreparedGetNumberOfResults operation = getStub.storIOContentResolver.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 putContentValuesIterableSingleExecutesOnSpecifiedScheduler.
@Test
public void putContentValuesIterableSingleExecutesOnSpecifiedScheduler() {
final PutContentValuesStub putStub = PutContentValuesStub.newPutStubForMultipleContentValues();
final SchedulerChecker schedulerChecker = SchedulerChecker.create(putStub.storIOContentResolver);
final PreparedPutContentValuesIterable operation = putStub.storIOContentResolver.put().contentValues(putStub.contentValues).withPutResolver(putStub.putResolver).prepare();
schedulerChecker.checkAsSingle(operation);
}
use of com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker in project storio by pushtorefresh.
the class PreparedPutContentValuesIterableTest method putContentValuesIterableFlowableExecutesOnSpecifiedScheduler.
@Test
public void putContentValuesIterableFlowableExecutesOnSpecifiedScheduler() {
final PutContentValuesStub putStub = PutContentValuesStub.newPutStubForMultipleContentValues();
final SchedulerChecker schedulerChecker = SchedulerChecker.create(putStub.storIOContentResolver);
final PreparedPutContentValuesIterable operation = putStub.storIOContentResolver.put().contentValues(putStub.contentValues).withPutResolver(putStub.putResolver).prepare();
schedulerChecker.checkAsFlowable(operation);
}
Aggregations