@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); }
@Override protected void setUpTestData(SystemTestData testData) throws Exception { super.setUpTestData(testData); testData.setUpDefaultRasterLayers(); }
/** * Checks that the image generated by the map producer is not blank. * * @param testName * @param producer */ protected void assertNotBlank(String testName, BufferedImage image) { assertNotBlank(testName, image, BG_COLOR); showImage(testName, image); }
/** * Checks that the image generated by the map producer is not blank. * * @param testName * @param producer */ protected void assertBlank(String testName, BufferedImage image) { assertBlank(testName, image, BG_COLOR); showImage(testName, image); }
public static void showImage(String frameName, final BufferedImage image) { showImage(frameName, SHOW_TIMEOUT, image); }
/** * Asserts that the image is blank, in the sense that all pixels will be equal to the background * color * * @param testName the name of the test to throw meaningful messages if something goes wrong * @param image the image to check it is not "blank" * @param bgColor the background color for which differing pixels are looked for */ protected void assertBlank(String testName, BufferedImage image, Color bgColor) { int pixelsDiffer = countNonBlankPixels(testName, image, bgColor); assertEquals(testName + " image is completely blank", 0, pixelsDiffer); }
protected LayerGroupInfo createLakesPlacesLayerGroup( Catalog catalog, LayerGroupInfo.Mode mode, LayerInfo rootLayer) throws Exception { return createLakesPlacesLayerGroup(catalog, "lakes_and_places", mode, rootLayer); }
/** * Performs some checks on an image response assuming the image is a png. * * @see #checkImage(MockHttpServletResponse, String) */ protected void checkImage(MockHttpServletResponse response) { checkImage(response, "image/png", -1, -1); }
/** Calls through to {@link #createGetMapRequest(QName[])}. */ protected GetMapRequest createGetMapRequest(QName layerName) { return createGetMapRequest(new QName[] {layerName}); }
WMSTestSupport.showImage("test", img);
/** * Asserts that the image is not blank, in the sense that there must be pixels different from * the passed background color. * * @param testName the name of the test to throw meaningfull messages if something goes wrong * @param image the imgage to check it is not "blank" * @param bgColor the background color for which differing pixels are looked for */ protected void assertNotBlank(String testName, BufferedImage image, Color bgColor) { int pixelsDiffer = countNonBlankPixels(testName, image, bgColor); assertTrue(testName + " image is comlpetely blank", 0 < pixelsDiffer); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); }
@Override protected void setUpTestData(SystemTestData testData) throws Exception { super.setUpTestData(testData); testData.setUpWcs10RasterLayers(); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); }
@Override protected void setUpTestData(SystemTestData testData) throws Exception { super.setUpTestData(testData); testData.setUpDefaultRasterLayers(); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); }
@Override protected void setUpTestData(SystemTestData testData) throws Exception { super.setUpTestData(testData); testData.setUpWcs11RasterLayers(); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); TimeZone.setDefault(TimeZone.getTimeZone("UTC")); }
@Override protected void setUpTestData(SystemTestData testData) throws Exception { super.setUpTestData(testData); testData.setUpDefaultRasterLayers(); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); testData.addStyle("multifts", "./polyMultiFts.sld", getClass(), getCatalog()); }