private void setOldDefaults() { setCacheLayersByDefault(true); setMetaTilingX(4); setMetaTilingY(4); setGutter(0); // this is not an old default, but a new feature so we enabled it anyway setCacheNonDefaultStyles(true); setDefaultCachingGridSetIds(new HashSet<String>(Arrays.asList("EPSG:4326", "EPSG:900913"))); Set<String> oldDefaultFormats = new HashSet<String>(Arrays.asList("image/png", "image/jpeg")); setDefaultCoverageCacheFormats(oldDefaultFormats); setDefaultOtherCacheFormats(oldDefaultFormats); setDefaultVectorCacheFormats(oldDefaultFormats); setDirectWMSIntegrationEnabled(false); setWMSCEnabled(true); setTMSEnabled(true); setEnabledPersistence(true); setInnerCachingEnabled(false); HashMap<String, CacheConfiguration> map = new HashMap<String, CacheConfiguration>(); map.put(GuavaCacheProvider.class.toString(), new CacheConfiguration()); setCacheConfigurations(map); setCacheProviderClass(GuavaCacheProvider.class.toString()); }
private void setOldDefaults() { setCacheLayersByDefault(true); setMetaTilingX(4); setMetaTilingY(4); setGutter(0); // this is not an old default, but a new feature so we enabled it anyway setCacheNonDefaultStyles(true); setDefaultCachingGridSetIds(new HashSet<String>(Arrays.asList("EPSG:4326", "EPSG:900913"))); Set<String> oldDefaultFormats = new HashSet<String>( Arrays.asList("image/png", "image/jpeg")); setDefaultCoverageCacheFormats(oldDefaultFormats); setDefaultOtherCacheFormats(oldDefaultFormats); setDefaultVectorCacheFormats(oldDefaultFormats); setDirectWMSIntegrationEnabled(false); setWMSCEnabled(true); setWMTSEnabled(true); setTMSEnabled(true); }
defaults.setCacheLayersByDefault(true); when(configPersister.getConfig()).thenReturn(defaults);
defaults.getDefaultOtherCacheFormats().clear(); defaults.getDefaultOtherCacheFormats().add("image/jpeg"); defaults.setCacheLayersByDefault(false); defaults.setCacheNonDefaultStyles(true);