assertEquals(layer2.isCacheBypassAllowed().booleanValue(), false);
}
public void testLoad114() throws Exception {
List<TileLayer> layers = loadResource("geowebcache_114.xml");
TileLayer layer = findLayer(layers, "topp:states");
assertTrue(layer != null);
//assertEquals(layer.getCachePrefix(), "/var/lib/geowebcache/topp_states");
TileLayer layer2 = findLayer(layers, "topp:states2");
GridSubset grid = layer2.getGridSubsetForSRS(SRS.getSRS(2163));
assertTrue(layer2 != null);
assertTrue(grid != null);
// The additions in 1.0.1 are allowCacheBypass and backendTimeout
assertEquals(layer.getBackendTimeout().intValue(), 120);
assertEquals(layer2.getBackendTimeout().intValue(), 120);
assertEquals(layer.isCacheBypassAllowed().booleanValue(), true);
assertEquals(layer2.isCacheBypassAllowed().booleanValue(), true);
FormatModifier fm = layer.getFormatModifier(ImageMime.jpeg);
assertEquals(fm.getBgColor(), "0xDDDDDD");
assertTrue(fm.getRequestFormat().equals(ImageMime.png));