protected void setupSpecifications() { specs = new Specification[3]; specs[0] = new WMS1_0_0(); specs[1] = new WMS1_1_0(); specs[2] = new WMS1_1_1(); } }
/** * Sets up the specifications/versions that this server is capable of * communicating with. */ protected void setupSpecifications() { specs = new Specification[4]; specs[0] = new WMS1_0_0(); specs[1] = new WMS1_1_0(); specs[2] = new WMS1_1_1(); specs[3] = new WMS1_3_0(); }
/** Sets up the specifications/versions that this server is capable of communicating with. */ protected void setupSpecifications() { specs = new Specification[4]; specs[0] = new WMS1_0_0(); specs[1] = new WMS1_1_0(); specs[2] = new WMS1_1_1(); specs[3] = new WMS1_3_0(); }
/** * Test for GEOS-6362: getFinalURL had side effects and gave different results if called * multiple times. */ @Test public void testNoSideEffectsOnGetFinalUrl() throws Exception { GetMapRequest request = new org.geotools.data.wms.WMS1_0_0().createGetMapRequest(new URL("http://test?")); SecuredGetMapRequest securedRequest = new SecuredGetMapRequest(request); Layer wmsLayer = new Layer(); wmsLayer.setName("layer1"); Layer layer = new SecuredWMSLayer(wmsLayer, WrapperPolicy.hide(null)); securedRequest.addLayer(layer); String firstCallURL = securedRequest.getFinalURL().toExternalForm(); String secondCallURL = securedRequest.getFinalURL().toExternalForm(); assertEquals(firstCallURL, secondCallURL); } }