@Test public void testRefresh() { RefreshSystemSettingsCacheMapperImpl sut = new RefreshSystemSettingsCacheMapperImpl(); SimpleMemoryCache cache = new SimpleMemoryCache(); sut.setCache(cache); SystemSettings settings = new SystemSettings(); sut.refresh(null, settings); assertSame(settings, cache.get(CacheKeys.SYSTEM_SETTINGS)); }
@Override public void refresh(final Object request, final SystemSettings inSystemSettings) { log.info("Updating SystemSettings in cache"); getCache().set(CacheKeys.SYSTEM_SETTINGS, inSystemSettings); }
RefreshSystemSettingsCacheMapperImpl extends CachedDomainMapper implements
        RefreshStrategy<Object, SystemSettings> { @Override public void refresh(final Object request, final SystemSettings inSystemSettings) { log.info("Updating SystemSettings in cache"); getCache().set(CacheKeys.SYSTEM_SETTINGS, inSystemSettings); } }
RefreshSystemSettingsCacheMapperImpl extends CachedDomainMapper implements
        RefreshStrategy<Object, SystemSettings> { @Override public void refresh(final Object request, final SystemSettings inSystemSettings) { log.info("Updating SystemSettings in cache"); getCache().set(CacheKeys.SYSTEM_SETTINGS, inSystemSettings); }  }
RefreshSystemSettingsCacheMapperImpl extends CachedDomainMapper implements
        RefreshStrategy<Object, SystemSettings> { @Override public void refresh(final Object request, final SystemSettings inSystemSettings) { log.info("Updating SystemSettings in cache"); getCache().set(CacheKeys.SYSTEM_SETTINGS, inSystemSettings); }  @Override void refresh(final Object request, final SystemSettings inSystemSettings); }
RefreshSystemSettingsCacheMapperImpl extends CachedDomainMapper implements
        RefreshStrategy<Object, SystemSettings> { @Override public void refresh(final Object request, final SystemSettings inSystemSettings) { log.info("Updating SystemSettings in cache"); getCache().set(CacheKeys.SYSTEM_SETTINGS, inSystemSettings); }  @Override void refresh(final Object request, final SystemSettings inSystemSettings);  }