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