use of com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker in project storio by pushtorefresh.
the class PreparedPutContentValuesTest method putContentValuesCompletableExecutesOnSpecifiedScheduler.
@Test
public void putContentValuesCompletableExecutesOnSpecifiedScheduler() {
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.checkAsCompletable(operation);
}
use of com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker in project storio by pushtorefresh.
the class PreparedPutContentValuesTest method putContentValuesSingleExecutesOnSpecifiedScheduler.
@Test
public void putContentValuesSingleExecutesOnSpecifiedScheduler() {
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.checkAsSingle(operation);
}
use of com.pushtorefresh.storio3.contentresolver.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.storIOContentResolver);
final PreparedGetCursor operation = getStub.storIOContentResolver.get().cursor().withQuery(getStub.query).withGetResolver(getStub.getResolver).prepare();
schedulerChecker.checkAsFlowable(operation);
}
use of com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker in project storio by pushtorefresh.
the class PreparedGetCursorTest method getCursorSingleExecutesOnSpecifiedScheduler.
@Test
public void getCursorSingleExecutesOnSpecifiedScheduler() {
final GetCursorStub getStub = GetCursorStub.newInstance();
final SchedulerChecker schedulerChecker = SchedulerChecker.create(getStub.storIOContentResolver);
final PreparedGetCursor operation = getStub.storIOContentResolver.get().cursor().withQuery(getStub.query).withGetResolver(getStub.getResolver).prepare();
schedulerChecker.checkAsSingle(operation);
}
use of com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker in project storio by pushtorefresh.
the class PreparedDeleteByQueryTest method deleteByQuerySingleExecutesOnSpecifiedScheduler.
@Test
public void deleteByQuerySingleExecutesOnSpecifiedScheduler() {
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.checkAsSingle(operation);
}
Aggregations