@Test public void testExecute() { final Cache cache = context.mock(Cache.class); DeleteSystemSettingsCacheMapper sut = new DeleteSystemSettingsCacheMapper(); sut.setCache(cache); context.checking(new Expectations() { { oneOf(cache).delete(CacheKeys.SYSTEM_SETTINGS); } }); sut.execute(null); context.assertIsSatisfied(); }
@Override public Boolean execute(final Object inRequest) { log.info("Clearing the SystemSettings from cache."); getCache().delete(CacheKeys.SYSTEM_SETTINGS); return true; }
DeleteSystemSettingsCacheMapper extends BaseArgCachedDomainMapper<Object, Boolean> { @Override public Boolean execute(final Object inRequest) { log.info("Clearing the SystemSettings from cache."); getCache().delete(CacheKeys.SYSTEM_SETTINGS); return true; } }
DeleteSystemSettingsCacheMapper extends BaseArgCachedDomainMapper<Object, Boolean> { @Override public Boolean execute(final Object inRequest) { log.info("Clearing the SystemSettings from cache."); getCache().delete(CacheKeys.SYSTEM_SETTINGS); return true; }  }
DeleteSystemSettingsCacheMapper extends BaseArgCachedDomainMapper<Object, Boolean> { @Override public Boolean execute(final Object inRequest) { log.info("Clearing the SystemSettings from cache."); getCache().delete(CacheKeys.SYSTEM_SETTINGS); return true; }  @Override Boolean execute(final Object inRequest); }
DeleteSystemSettingsCacheMapper extends BaseArgCachedDomainMapper<Object, Boolean> { @Override public Boolean execute(final Object inRequest) { log.info("Clearing the SystemSettings from cache."); getCache().delete(CacheKeys.SYSTEM_SETTINGS); return true; }  @Override Boolean execute(final Object inRequest);  }