@Test public void testExecute() { final String cacheKey1 = "FOO" + 1; final String cacheKey2 = "FOO" + 2; final String cacheKey3 = "FOO" + 3; final List<Long> cacheValues1 = Arrays.asList(1L, 2L, 3L); final List<Long> cacheValues2 = Arrays.asList(1L, 2L, 3L, 4L, 5L, 6L); final List<Long> cacheValues3 = Arrays.asList(1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L); getCache().setList(cacheKey1, cacheValues1); getCache().setList(cacheKey2, cacheValues2); getCache().setList(cacheKey3, cacheValues3); assertEquals(3, getCache().getList(cacheKey1).size()); assertEquals(6, getCache().getList(cacheKey2).size()); assertEquals(9, getCache().getList(cacheKey3).size()); List<String> keys = Arrays.asList(cacheKey1, cacheKey2, cacheKey3); List<Long> values = Arrays.asList(1L, 2L, 3L); DeleteIdsFromListsRequest request = new DeleteIdsFromListsRequest(keys, values); sut.execute(request); assertEquals(0, getCache().getList(cacheKey1).size()); assertEquals(3, getCache().getList(cacheKey2).size()); assertEquals(6, getCache().getList(cacheKey3).size()); }
public void execute(final DeleteIdsFromListsRequest request) { getCache().removeFromLists(request.getKeys(), request.getValues()); }
RemoveIdsFromLists extends CachedDomainMapper { public void execute(final DeleteIdsFromListsRequest request) { getCache().removeFromLists(request.getKeys(), request.getValues()); } }
RemoveIdsFromLists extends CachedDomainMapper { public void execute(final DeleteIdsFromListsRequest request) { getCache().removeFromLists(request.getKeys(), request.getValues()); }  }
RemoveIdsFromLists extends CachedDomainMapper { public void execute(final DeleteIdsFromListsRequest request) { getCache().removeFromLists(request.getKeys(), request.getValues()); }  void execute(final DeleteIdsFromListsRequest request); }
RemoveIdsFromLists extends CachedDomainMapper { public void execute(final DeleteIdsFromListsRequest request) { getCache().removeFromLists(request.getKeys(), request.getValues()); }  void execute(final DeleteIdsFromListsRequest request);  }