use of com.pushtorefresh.storio3.sqlite.operations.SchedulerChecker in project storio by pushtorefresh.
the class PreparedGetNumberOfResultsTest method getNumberOfResultsFlowableExecutesOnSpecifiedScheduler.
@Test
public void getNumberOfResultsFlowableExecutesOnSpecifiedScheduler() {
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.checkAsFlowable(operation);
}
use of com.pushtorefresh.storio3.sqlite.operations.SchedulerChecker in project storio by pushtorefresh.
the class PreparedPutContentValuesIterableTest method putContentValuesIterableCompletableExecutesOnSpecifiedScheduler.
@Test
public void putContentValuesIterableCompletableExecutesOnSpecifiedScheduler() {
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.checkAsCompletable(operation);
}
use of com.pushtorefresh.storio3.sqlite.operations.SchedulerChecker in project storio by pushtorefresh.
the class PreparedPutContentValuesIterableTest method putMultipleCompletableExecutesOnSpecifiedScheduler.
@Test
public void putMultipleCompletableExecutesOnSpecifiedScheduler() {
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.checkAsCompletable(operation);
}
use of com.pushtorefresh.storio3.sqlite.operations.SchedulerChecker in project storio by pushtorefresh.
the class PreparedPutContentValuesIterableTest method putMultipleSingleExecutesOnSpecifiedScheduler.
@Test
public void putMultipleSingleExecutesOnSpecifiedScheduler() {
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.checkAsSingle(operation);
}
use of com.pushtorefresh.storio3.sqlite.operations.SchedulerChecker in project storio by pushtorefresh.
the class PreparedGetCursorTest method getCursorFlowableExecutesOnSpecifiedScheduler.
@Test
public void getCursorFlowableExecutesOnSpecifiedScheduler() {
final GetCursorStub getStub = GetCursorStub.newInstance();
final SchedulerChecker schedulerChecker = SchedulerChecker.create(getStub.storIOSQLite);
final PreparedGetCursor operation = getStub.storIOSQLite.get().cursor().withQuery(getStub.query).withGetResolver(getStub.getResolverForCursor).prepare();
schedulerChecker.checkAsFlowable(operation);
}
Aggregations