use of com.pushtorefresh.storio3.sqlite.operations.get.PreparedGetNumberOfResults 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);
}
use of com.pushtorefresh.storio3.sqlite.operations.get.PreparedGetNumberOfResults 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.sqlite.operations.get.PreparedGetNumberOfResults in project storio by pushtorefresh.
the class GetNumberOfResultsObserveChangesTest method repeatsOperationWithQueryByChangeOfTag.
@Test
public void repeatsOperationWithQueryByChangeOfTag() {
putUserBlocking();
PreparedGetNumberOfResults operation = storIOSQLite.get().numberOfResults().withQuery(query).prepare();
verifyChangesReceived(operation, tagChanges, 1);
}
use of com.pushtorefresh.storio3.sqlite.operations.get.PreparedGetNumberOfResults in project storio by pushtorefresh.
the class GetNumberOfResultsObserveChangesTest method repeatsOperationWithRawQueryByChangeOfTag.
@Test
public void repeatsOperationWithRawQueryByChangeOfTag() {
putUserBlocking();
PreparedGetNumberOfResults operation = storIOSQLite.get().numberOfResults().withQuery(rawQuery).prepare();
verifyChangesReceived(operation, tagChanges, 1);
}
use of com.pushtorefresh.storio3.sqlite.operations.get.PreparedGetNumberOfResults in project storio by pushtorefresh.
the class GetNumberOfResultsObserveChangesTest method repeatsOperationWithRawQueryByChangeOfTable.
@Test
public void repeatsOperationWithRawQueryByChangeOfTable() {
putUserBlocking();
PreparedGetNumberOfResults operation = storIOSQLite.get().numberOfResults().withQuery(rawQuery).prepare();
verifyChangesReceived(operation, tableChanges, 1);
}
Aggregations