Search in sources :

Example 16 with SchedulerChecker

use of com.pushtorefresh.storio3.sqlite.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);
}
Also used : SchedulerChecker(com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker) Test(org.junit.Test)

Example 17 with SchedulerChecker

use of com.pushtorefresh.storio3.sqlite.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);
}
Also used : SchedulerChecker(com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker) Test(org.junit.Test)

Example 18 with SchedulerChecker

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.storIOContentResolver);
    final PreparedGetCursor operation = getStub.storIOContentResolver.get().cursor().withQuery(getStub.query).withGetResolver(getStub.getResolver).prepare();
    schedulerChecker.checkAsFlowable(operation);
}
Also used : SchedulerChecker(com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker) Test(org.junit.Test)

Example 19 with SchedulerChecker

use of com.pushtorefresh.storio3.sqlite.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);
}
Also used : SchedulerChecker(com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker) Test(org.junit.Test)

Example 20 with SchedulerChecker

use of com.pushtorefresh.storio3.sqlite.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);
}
Also used : SchedulerChecker(com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)26 SchedulerChecker (com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker)13 SchedulerChecker (com.pushtorefresh.storio3.sqlite.operations.SchedulerChecker)13