Search in sources :

Example 1 with SchedulerChecker

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

Example 2 with SchedulerChecker

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

Example 3 with SchedulerChecker

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

Example 4 with SchedulerChecker

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

Example 5 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.storIOSQLite);
    final PreparedGetCursor operation = getStub.storIOSQLite.get().cursor().withQuery(getStub.query).withGetResolver(getStub.getResolverForCursor).prepare();
    schedulerChecker.checkAsFlowable(operation);
}
Also used : SchedulerChecker(com.pushtorefresh.storio3.sqlite.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