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