@Test public void testInitializeCache() throws Exception { final TaskHandler submitter = context.mock(TaskHandler.class); context.checking(new Expectations() { { one(submitter).handleTask(with(any(UserActionRequest.class))); } }); new CacheInitializer().initializeCache(submitter); context.assertIsSatisfied(); }
public void initializeCache(final TaskHandler inActionSubmitter) { if (logger.isInfoEnabled()) { logger.info("initializeCache."); } try { inActionSubmitter.handleTask(new UserActionRequest("initializeCache", null, null)); } catch (Exception ex) { logger.error("Error occurred initializing cache", ex); } }
CacheInitializer { public void initializeCache(final TaskHandler inActionSubmitter) { if (logger.isInfoEnabled()) { logger.info("initializeCache."); } try { inActionSubmitter.handleTask(new UserActionRequest("initializeCache", null, null)); } catch (Exception ex) { logger.error("Error occurred initializing cache", ex); } } }
CacheInitializer { public void initializeCache(final TaskHandler inActionSubmitter) { if (logger.isInfoEnabled()) { logger.info("initializeCache."); } try { inActionSubmitter.handleTask(new UserActionRequest("initializeCache", null, null)); } catch (Exception ex) { logger.error("Error occurred initializing cache", ex); } }  }
CacheInitializer { public void initializeCache(final TaskHandler inActionSubmitter) { if (logger.isInfoEnabled()) { logger.info("initializeCache."); } try { inActionSubmitter.handleTask(new UserActionRequest("initializeCache", null, null)); } catch (Exception ex) { logger.error("Error occurred initializing cache", ex); } }  @SuppressWarnings("unchecked") void wireCacheUpdaters(final EntityCacheUpdater inDomainGroupEntityCacheUpdater,
            final EntityCacheUpdater inPersonEntityCacheUpdater); void initializeCache(final TaskHandler inActionSubmitter); }
CacheInitializer { public void initializeCache(final TaskHandler inActionSubmitter) { if (logger.isInfoEnabled()) { logger.info("initializeCache."); } try { inActionSubmitter.handleTask(new UserActionRequest("initializeCache", null, null)); } catch (Exception ex) { logger.error("Error occurred initializing cache", ex); } }  @SuppressWarnings("unchecked") void wireCacheUpdaters(final EntityCacheUpdater inDomainGroupEntityCacheUpdater,
            final EntityCacheUpdater inPersonEntityCacheUpdater); void initializeCache(final TaskHandler inActionSubmitter);  }