@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); TimeZone.setDefault(TimeZone.getTimeZone("UTC")); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); testData.addStyle("multifts", "./polyMultiFts.sld", getClass(), getCatalog()); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); testData.addVectorLayer( TIME_WITH_START_END, Collections.EMPTY_MAP, "TimeElevationWithStartEnd.properties", getClass(), getCatalog()); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); testData.addStyle(LINE_WIDTH_STYLE, "linewidth.sld", getClass(), getCatalog()); Map properties = new HashMap(); properties.put(MockData.KEY_STYLE, LINE_WIDTH_STYLE); testData.addVectorLayer( LINE_WIDTH_LAYER, properties, "LineWidth.properties", getClass(), getCatalog()); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); testData.addDefaultRasterLayer(MockData.TASMANIA_DEM, getCatalog()); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); Catalog catalog = getCatalog(); testData.addStyle("burg-fill", "burg-fill.sld", PDFGetMapTest.class, catalog); testData.addStyle("triangle-fill", "triangle-fill.sld", PDFGetMapTest.class, catalog); testData.addStyle("hatch-fill", "hatch-fill.sld", PDFGetMapTest.class, catalog); // copy over the svg icon File styles = new File(testData.getDataDirectoryRoot(), "styles"); File burg = new File(styles, "burg02.svg"); try (InputStream is = getClass().getResourceAsStream("burg02.svg"); FileOutputStream fos = new FileOutputStream(burg)) { IOUtils.copy(is, fos); } }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); Catalog catalog = getCatalog(); testData.addStyle( "Population", "Population.sld", org.geoserver.wms.wms_1_1_1.GetMapIntegrationTest.class, catalog); testData.addVectorLayer( new QName(MockData.SF_URI, "states", MockData.SF_PREFIX), Collections.EMPTY_MAP, "states.properties", org.geoserver.wms.wms_1_1_1.GetMapIntegrationTest.class, catalog); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); Catalog catalog = getCatalog(); testData.addStyle("Bridge", "bridge.sld", getClass(), catalog); testData.addStyle("allsymbolizers", "allsymbolizers.sld", getClass(), catalog); testData.addStyle("labels", "labels.sld", getClass(), catalog); testData.addStyle("SingleFeature", "singlefeature.sld", getClass(), catalog); testData.addStyle("BridgeSubdir", "bridgesubdir.sld", getClass(), catalog); testData.addStyle("dynamicsymbolizer", "dynamicsymbolizer.sld", getClass(), catalog); testData.addStyle("relativeds", "relativeds.sld", getClass(), catalog); testData.addStyle("big-local-image", "big-local-image.sld", getClass(), catalog); testData.addStyle("big-mark", "big-mark.sld", getClass(), catalog); testData.copyTo(getClass().getResourceAsStream("bridge.png"), "styles/bridge.png"); testData.copyTo(getClass().getResourceAsStream("planet-42.png"), "styles/planet-42.png"); File stylesDir = new File(testData.getDataDirectoryRoot(), "styles"); new File(stylesDir, "graphics").mkdir(); testData.copyTo( getClass().getResourceAsStream("bridge.png"), "styles/graphics/bridgesubdir.png"); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); testData.addDefaultRasterLayer(MockData.TASMANIA_DEM, getCatalog()); testData.addStyle("rainfall", "rainfall.sld", MockData.class, getCatalog()); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); testData.addDefaultRasterLayer(MockData.TASMANIA_DEM, getCatalog()); testData.addRasterLayer(TAZ_BYTE, "tazbyte.tiff", null, getCatalog()); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); Logging.getLogger("org.geoserver.ows").setLevel(Level.OFF); GeoServerInfo global = getGeoServer().getGlobal(); global.getSettings().setProxyBaseUrl("src/test/resources/geoserver"); getGeoServer().save(global); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); Catalog catalog = getCatalog(); testData.addStyle("Population", "Population.sld", GetMapIntegrationTest.class, catalog); testData.addStyle( "PopulationElse", "PopulationElse.sld", FeatureCountLegendGraphicTest.class, catalog); testData.addStyle( "scaleDependent", "scaleDependent.sld", GetLegendGraphicTest.class, catalog); testData.addVectorLayer( SF_STATES, Collections.EMPTY_MAP, "states.properties", GetMapIntegrationTest.class, catalog); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); Catalog catalog = getCatalog(); testData.addStyle("thin_line", "thin_line.sld", UTFGridIntegrationTest.class, catalog); testData.addStyle("dotted", "dotted.sld", UTFGridIntegrationTest.class, catalog); testData.addStyle("circle", "circle.sld", UTFGridIntegrationTest.class, catalog); testData.addStyle( "polygonExtract", "polygonExtract.sld", UTFGridIntegrationTest.class, catalog); testData.addStyle( "decoratedCircle", "decoratedCircle.sld", UTFGridIntegrationTest.class, catalog); testData.addStyle("population", "Population.sld", GetMapIntegrationTest.class, catalog); testData.addVectorLayer( new QName(MockData.SF_URI, "states", MockData.SF_PREFIX), Collections.EMPTY_MAP, "states.properties", GetMapIntegrationTest.class, catalog); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); Catalog catalog = getCatalog(); testData.addStyle("raster", "raster.sld", BilTest.class, catalog); testData.addRasterLayer(AUS_DEM, "aus_dem.tiff", "tiff", null, BilTest.class, catalog); testData.addRasterLayer(SF_DEM, "sfdem.tiff", "tiff", null, BilTest.class, catalog); WMSInfo wmsInfo = getGeoServer().getService(WMSInfo.class); wmsInfo.setMaxBuffer(50); getGeoServer().save(wmsInfo); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); Catalog catalog = getCatalog(); DataStoreInfo info = catalog.getDataStoreByName(MockData.SF_PREFIX); info.setEnabled(false); catalog.save(info); GeoServerInfo global = getGeoServer().getGlobal(); global.getSettings().setProxyBaseUrl("src/test/resources/geoserver"); getGeoServer().save(global); // add a workspace qualified style WorkspaceInfo ws = catalog.getWorkspaceByName(MockData.CITE_PREFIX); testData.addStyle(ws, "Lakes", "Lakes.sld", SystemTestData.class, catalog); testData.addStyle(ws, "tiger_roads", "tiger_roads.sld", SystemTestData.class, catalog); StyleInfo lakesStyle = catalog.getStyleByName(ws, "Lakes"); LayerInfo lakesLayer = catalog.getLayerByName(MockData.LAKES.getLocalPart()); lakesLayer.setDefaultStyle(lakesStyle); StyleInfo tigerRoadsStyle = catalog.getStyleByName(ws, "tiger_roads"); lakesLayer.getStyles().add(tigerRoadsStyle); catalog.save(lakesLayer); setupOpaqueGroup(catalog); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); Catalog catalog = getCatalog(); DataStoreInfo info = catalog.getDataStoreByName(MockData.SF_PREFIX); info.setEnabled(false); catalog.save(info); GeoServerInfo global = getGeoServer().getGlobal(); global.getSettings().setProxyBaseUrl("src/test/resources/geoserver"); getGeoServer().save(global); // add a workspace qualified style WorkspaceInfo ws = catalog.getWorkspaceByName(MockData.CITE_PREFIX); testData.addStyle(ws, "Lakes", "Lakes.sld", SystemTestData.class, catalog); StyleInfo lakesStyle = catalog.getStyleByName(ws, "Lakes"); LayerInfo lakesLayer = catalog.getLayerByName(MockData.LAKES.getLocalPart()); lakesLayer.setDefaultStyle(lakesStyle); catalog.save(lakesLayer); setupOpaqueGroup(catalog); }