use of org.activityinfo.legacy.shared.command.result.ListResult in project activityinfo by bedatadriven.
the class AdminEntityCacheTest method testRootLevelCache.
@Test
public void testRootLevelCache() {
CacheManager proxyMgr = new CacheManager(new MockEventBus());
new AdminEntityCache(proxyMgr);
proxyMgr.notifyListenersOfSuccess(new GetAdminEntities(1), DTOs.getProvinces());
CacheResult<ListResult<AdminEntityDTO>> proxyResult = proxyMgr.execute(new GetAdminEntities(1));
Assert.assertTrue(proxyResult.isCouldExecute());
Assert.assertEquals(2, proxyResult.getResult().getData().size());
}
Aggregations