Search in sources :

Example 21 with SchedulerChecker

use of com.pushtorefresh.storio3.sqlite.operations.SchedulerChecker in project storio by pushtorefresh.

the class PreparedDeleteByQueryTest method deleteByQueryCompletableExecutesOnSpecifiedScheduler.

@Test
public void deleteByQueryCompletableExecutesOnSpecifiedScheduler() {
    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.checkAsCompletable(operation);
}
Also used : SchedulerChecker(com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker) Test(org.junit.Test)

Example 22 with SchedulerChecker

use of com.pushtorefresh.storio3.sqlite.operations.SchedulerChecker in project storio by pushtorefresh.

the class PreparedDeleteByQueryTest method deleteByQueryFlowableExecutesOnSpecifiedScheduler.

@Test
public void deleteByQueryFlowableExecutesOnSpecifiedScheduler() {
    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.checkAsFlowable(operation);
}
Also used : SchedulerChecker(com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker) Test(org.junit.Test)

Example 23 with SchedulerChecker

use of com.pushtorefresh.storio3.sqlite.operations.SchedulerChecker in project storio by pushtorefresh.

the class PreparedPutContentValuesTest method putContentValuesFlowableExecutesOnSpecifiedScheduler.

@Test
public void putContentValuesFlowableExecutesOnSpecifiedScheduler() {
    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.checkAsFlowable(operation);
}
Also used : SchedulerChecker(com.pushtorefresh.storio3.contentresolver.operations.SchedulerChecker) Test(org.junit.Test)

Example 24 with SchedulerChecker

use of com.pushtorefresh.storio3.sqlite.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.storIOSQLite);
    final PreparedGetNumberOfResults operation = getStub.storIOSQLite.get().numberOfResults().withQuery(getStub.query).withGetResolver(getStub.getResolverForNumberOfResults).prepare();
    schedulerChecker.checkAsSingle(operation);
}
Also used : SchedulerChecker(com.pushtorefresh.storio3.sqlite.operations.SchedulerChecker) Test(org.junit.Test)

Example 25 with SchedulerChecker

use of com.pushtorefresh.storio3.sqlite.operations.SchedulerChecker in project storio by pushtorefresh.

the class PreparedPutContentValuesIterableTest method putMultipleFlowableExecutesOnSpecifiedScheduler.

@Test
public void putMultipleFlowableExecutesOnSpecifiedScheduler() {
    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.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