Search in sources :

Example 11 with SchedulerChecker

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

Example 12 with SchedulerChecker

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

Example 13 with SchedulerChecker

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

Example 14 with SchedulerChecker

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

Example 15 with SchedulerChecker

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);
}
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