Search in sources :

Example 6 with SchedulerChecker

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

Example 7 with SchedulerChecker

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

the class PreparedDeleteByQueryTest method deleteByQuerySingleExecutesOnSpecifiedScheduler.

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

Example 8 with SchedulerChecker

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

the class PreparedExecuteSQLTest method executeSQLFlowableExecutesOnSpecifiedScheduler.

@Test
public void executeSQLFlowableExecutesOnSpecifiedScheduler() {
    final Stub stub = Stub.newInstanceApplyNotEmptyAffectedTablesAndTags();
    final SchedulerChecker schedulerChecker = SchedulerChecker.create(stub.storIOSQLite);
    final PreparedExecuteSQL operation = stub.storIOSQLite.executeSQL().withQuery(stub.rawQuery).prepare();
    schedulerChecker.checkAsFlowable(operation);
}
Also used : SchedulerChecker(com.pushtorefresh.storio3.sqlite.operations.SchedulerChecker) Test(org.junit.Test)

Example 9 with SchedulerChecker

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

the class PreparedExecuteSQLTest method executeSQLSingleExecutesOnSpecifiedScheduler.

@Test
public void executeSQLSingleExecutesOnSpecifiedScheduler() {
    final Stub stub = Stub.newInstanceApplyNotEmptyAffectedTablesAndTags();
    final SchedulerChecker schedulerChecker = SchedulerChecker.create(stub.storIOSQLite);
    final PreparedExecuteSQL operation = stub.storIOSQLite.executeSQL().withQuery(stub.rawQuery).prepare();
    schedulerChecker.checkAsSingle(operation);
}
Also used : SchedulerChecker(com.pushtorefresh.storio3.sqlite.operations.SchedulerChecker) Test(org.junit.Test)

Example 10 with SchedulerChecker

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

the class PreparedExecuteSQLTest method executeSQLCompletableExecutesOnSpecifiedScheduler.

@Test
public void executeSQLCompletableExecutesOnSpecifiedScheduler() {
    final Stub stub = Stub.newInstanceApplyNotEmptyAffectedTablesAndTags();
    final SchedulerChecker schedulerChecker = SchedulerChecker.create(stub.storIOSQLite);
    final PreparedExecuteSQL operation = stub.storIOSQLite.executeSQL().withQuery(stub.rawQuery).prepare();
    schedulerChecker.checkAsCompletable(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