/** @return The global wcs instance from the application context. */ protected WCSInfo getWCS() { WCSInfo wcs = getGeoServer().getService(WCSInfo.class); return wcs; }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); // init xmlunit Map<String, String> namespaces = new HashMap<String, String>(); namespaces.put("wcs", "http://www.opengis.net/wcs"); namespaces.put("ows", "http://www.opengis.net/ows/1.1"); namespaces.put("gml", "http://www.opengis.net/gml"); namespaces.put("xlink", "http://www.w3.org/1999/xlink"); XMLUnit.setXpathNamespaceContext(new SimpleNamespaceContext(namespaces)); xpath = XMLUnit.newXpathEngine(); }
@Override protected void populateDataDirectory(MockData dataDirectory) throws Exception { super.populateDataDirectory(dataDirectory); // add a raster mosaic with time and elevation dataDirectory.addCoverage(WATTEMP, TestData.class.getResource("watertemp.zip"), null, "raster"); }
@Override protected void oneTimeSetUp() throws Exception { super.oneTimeSetUp(); // init xmlunit Map<String, String> namespaces = new HashMap<String, String>(); namespaces.put("wcs", "http://www.opengis.net/wcs"); namespaces.put("ows", "http://www.opengis.net/ows/1.1"); namespaces.put("gml", "http://www.opengis.net/gml"); namespaces.put("xlink", "http://www.w3.org/1999/xlink"); XMLUnit.setXpathNamespaceContext(new SimpleNamespaceContext(namespaces)); xpath = XMLUnit.newXpathEngine(); }
@Override protected void setUpTestData(SystemTestData testData) throws Exception { super.setUpTestData(testData); // add a raster mosaic with time and elevation testData.setUpRasterLayer(WATTEMP, "watertemp.zip", null, null, TestData.class); // a raster layer with time, elevation and custom dimensions as ranges testData.setUpRasterLayer(TIMERANGES, "timeranges.zip", null, null, TestData.class); }
/** * @return The global wcs instance from the application context. */ protected WCSInfo getWCS() { WCSInfo wcs = getGeoServer().getService(WCSInfo.class); return wcs; }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); // init xmlunit Map<String, String> namespaces = new HashMap<String, String>(); namespaces.put("wcs", "http://www.opengis.net/wcs/1.1.1"); namespaces.put("ows", "http://www.opengis.net/ows/1.1"); namespaces.put("xlink", "http://www.w3.org/1999/xlink"); namespaces.put("xsi", "http://www.w3.org/2001/XMLSchema-instance"); XMLUnit.setXpathNamespaceContext(new SimpleNamespaceContext(namespaces)); xpath = XMLUnit.newXpathEngine(); }
/** @return The global wfs instance from the application context. */ protected WCSInfo getWCS() { return getGeoServer().getService(WCSInfo.class); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); testData.addRasterLayer( CUST_WATTEMP, "custwatertemp.zip", null, null, SystemTestData.class, getCatalog()); setupRasterDimension(DIMENSION_NAME, DimensionPresentation.LIST); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); testData.addRasterLayer( WATTEMP, "watertempDynamicDims.zip", null, null, SystemTestData.class, getCatalog()); setupRasterDimension(DIMENSION_NAME, DimensionPresentation.LIST); }