@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); // by default we parse layers format_options as a string LayersKvpParser.parseAsList = false; }
/** @return The global wfs instance from the application context. */ protected WFSInfo getWFS() { return getGeoServer().getService(WFSInfo.class); }
@Override protected void setUpSpring(List<String> springContextLocations) { super.setUpSpring(springContextLocations); springContextLocations.add( "classpath:/org/geoserver/wfs/TransactionCallbackTestContext.xml"); }
@After public void resetCiteCompliant() { if (Objects.nonNull(citeCompliant)) { WFSInfo wfs = getWFS(); wfs.setCiteCompliant(citeCompliant); getGeoServer().save(wfs); } }
@Override protected void onSetUp(SystemTestData testData) throws Exception { // init xmlunit Map<String, String> namespaces = new HashMap<String, String>(); namespaces.put("wfs", "http://www.opengis.net/wfs"); namespaces.put("ows", "http://www.opengis.net/ows"); namespaces.put("ogc", "http://www.opengis.net/ogc"); namespaces.put("xs", "http://www.w3.org/2001/XMLSchema"); namespaces.put("xsd", "http://www.w3.org/2001/XMLSchema"); namespaces.put("gml", "http://www.opengis.net/gml"); namespaces.put("xlink", "http://www.w3.org/1999/xlink"); namespaces.put("xsi", "http://www.w3.org/2001/XMLSchema-instance"); namespaces.put("gs", "http://geoserver.org"); namespaces.put("soap12", "http://www.w3.org/2003/05/soap-envelope"); CiteTestData.registerNamespaces(namespaces); setUpNamespaces(namespaces); XMLUnit.setXpathNamespaceContext(new SimpleNamespaceContext(namespaces)); setUpInternal(testData); }
@Override protected void setUpInternal(SystemTestData testData) throws Exception { super.setUpInternal(testData); testData.addVectorLayer( UUID_TEST, null, FeatureTypeInfoSchemaBuilderTest.class, getCatalog()); }
tx.transform(request, output); Document dom = super.dom(new ByteArrayInputStream(output.toByteArray()));
protected void setCiteCompliant(boolean value) { WFSInfo wfs = getWFS(); citeCompliant = wfs.isCiteCompliant(); wfs.setCiteCompliant(value); getGeoServer().save(wfs); }
@Override @SuppressWarnings("unchecked") protected void setUpInternal(SystemTestData data) throws Exception { super.setUpInternal(data); File security = new File(getTestData().getDataDirectoryRoot(), "security"); security.mkdir();
tx.transform(request, output); Document dom = super.dom(new ByteArrayInputStream(output.toByteArray()));
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); // create in memory layer containing XYZM lines geometries testData.addVectorLayer( LINESTRING_ZM, Collections.emptyMap(), "lineStringZm.properties", GeoJsonOutputFormatTest.class, getCatalog()); }
@Override protected void setUpSpring(List<String> springContextLocations) { super.setUpSpring(springContextLocations); springContextLocations.add( "classpath:/org/geoserver/wfs/TransactionListenerTestContext.xml"); }
@Override protected void setUpInternal(SystemTestData testData) throws Exception { super.setUpInternal(testData);
@Override protected void setUpSpring(List<String> springContextLocations) { super.setUpSpring(springContextLocations); springContextLocations.add( "classpath:/org/geoserver/wfs/GetFeatureCallbackTesterContext.xml"); }
/** Add the test resource access manager in the spring context */ @Override protected void setUpSpring(List<String> springContextLocations) { super.setUpSpring(springContextLocations); springContextLocations.add("classpath:/org/geoserver/wfs/ResourceAccessManagerContext.xml"); }