use of com.amazon.dataloader.testResources.MockDataLoadManagerWithoutDataUpdater in project zype-firebuilder by zype.
the class DataUpdaterModuleTest method testNonScheduledDataUpdater.
/**
* Tests non-scheduled data updater, verifying that DataUpdaterTask is not executed by
* Scheduler
*/
@Test
public void testNonScheduledDataUpdater() throws Exception {
MockDataLoadManager testDataLoadManagerNoUpdater = new MockDataLoadManagerWithoutDataUpdater(InstrumentationRegistry.getTargetContext());
testDataLoadManagerNoUpdater.registerUpdateListener(mUpdateListener);
Thread.sleep(5000);
verify(MockCacheManagerAdapter.mockCacheManagerAdapter, never()).clearCache();
verify(mUpdateListener, never()).onSuccess(any(Data.class));
}
Aggregations