@Test public void testUpdateCache() throws Exception { List<UserActionRequest> results = sut.getUpdateCacheRequests(user, personId); assertEquals(1, results.size()); UserActionRequest kickedOffRequest = results.get(0); assertEquals("personActivityAvatarUpdaterAsyncAction", kickedOffRequest.getActionKey()); Long requestParams = (Long) kickedOffRequest.getParams(); assertEquals(personId, requestParams); assertNull(kickedOffRequest.getUser()); context.assertIsSatisfied(); }
@Override public List<UserActionRequest> getUpdateCacheRequests(final Principal inUser, final Long inPersonId) { List<UserActionRequest> results = new ArrayList<UserActionRequest>(1); results.add(new UserActionRequest(ASYNC_ACTION_NAME, null, inPersonId)); return results; }
UpdatePersonAvatarCaches implements CacheUpdater { @Override public List<UserActionRequest> getUpdateCacheRequests(final Principal inUser, final Long inPersonId) { List<UserActionRequest> results = new ArrayList<UserActionRequest>(1); results.add(new UserActionRequest(ASYNC_ACTION_NAME, null, inPersonId)); return results; } }
UpdatePersonAvatarCaches implements CacheUpdater { @Override public List<UserActionRequest> getUpdateCacheRequests(final Principal inUser, final Long inPersonId) { List<UserActionRequest> results = new ArrayList<UserActionRequest>(1); results.add(new UserActionRequest(ASYNC_ACTION_NAME, null, inPersonId)); return results; }  }
UpdatePersonAvatarCaches implements CacheUpdater { @Override public List<UserActionRequest> getUpdateCacheRequests(final Principal inUser, final Long inPersonId) { List<UserActionRequest> results = new ArrayList<UserActionRequest>(1); results.add(new UserActionRequest(ASYNC_ACTION_NAME, null, inPersonId)); return results; }  @Override List<UserActionRequest> getUpdateCacheRequests(final Principal inUser, final Long inPersonId); }
UpdatePersonAvatarCaches implements CacheUpdater { @Override public List<UserActionRequest> getUpdateCacheRequests(final Principal inUser, final Long inPersonId) { List<UserActionRequest> results = new ArrayList<UserActionRequest>(1); results.add(new UserActionRequest(ASYNC_ACTION_NAME, null, inPersonId)); return results; }  @Override List<UserActionRequest> getUpdateCacheRequests(final Principal inUser, final Long inPersonId);  }