@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); testData.addWorkspace(SystemTestData.WCS_PREFIX, SystemTestData.WCS_URI, getCatalog()); // setup the namespace context for this test Map<String, String> namespaces = new HashMap<String, String>(); namespaces.put("gml", "http://www.opengis.net/gml"); namespaces.put("gf", "http://www.geoserver.org/rest/granules"); namespaces.put("wfs", "http://www.opengis.net/wfs"); XMLUnit.setXpathNamespaceContext(new SimpleNamespaceContext(namespaces)); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); // we need to add a wms store CatalogBuilder cb = new CatalogBuilder(catalog); cb.setWorkspace(catalog.getWorkspaceByName("sf")); WMSStoreInfo wms = cb.buildWMSStore("demo"); wms.setCapabilitiesURL("http://demo.opengeo.org/geoserver/wms?"); catalog.add(wms); // and a wms layer as well (cannot use the builder, would turn this test into an online one addStatesWmsLayer(); }