Class BaseGetMapFixture

java.lang.Object
de.latlon.ets.wms13.core.dgiwg.testsuite.AbstractBaseGetFixture
de.latlon.ets.wms13.core.dgiwg.testsuite.getmap.BaseGetMapFixture
Direct Known Subclasses:
GetMapBlankExceptionsTest, GetMapDimensionsTest, GetMapInImageExceptionsTest, GetMapLayerCrsTest, GetMapMultiDimensionalDataTest, GetMapOutputFormatTest, GetMapRequestParametersTest, GetMapTransparencyTest

public class BaseGetMapFixture extends AbstractBaseGetFixture
Author:
Lyn Goltz
  • Field Details

  • Constructor Details

    • BaseGetMapFixture

      public BaseGetMapFixture()
  • Method Details

    • buildGetMapRequest

      @BeforeClass public void buildGetMapRequest()
      Builds a WmsKvpRequest representing a GetMap request.
    • setResultDirectory

      @BeforeClass public void setResultDirectory(org.testng.ITestContext testContext)
    • findRequiredImageFormatWithTransparencySupport

      protected String findRequiredImageFormatWithTransparencySupport()
      If an image format supporting transparency is not supported by the WMS a SkipException is thrown.
      Returns:
      image format supporting transparency, never null
    • storeResponseImage

      protected void storeResponseImage(jakarta.ws.rs.core.Response rsp, String testGroup, String testName, String requestFormat)
      Stores the image in a the output directory of the testsuite: testSUiteOutputDirectory/testGroup/testName.extension
      Parameters:
      rsp - containing the image, rsp.getEntityInputStream() is used to retrieve the content as stream, never null
      testGroup - name of the test group (will be the name of the directory to create), never null
      testName - name of the test (will be the name of the file to create), never null
      requestFormat - the mime type of the image, never null
    • retrieveSessionDir

      String retrieveSessionDir(org.testng.ITestContext testContext)
      Gets the location of the output directory from the test run context.
      Parameters:
      testContext - Information about a test run.
      Returns:
      A String that identifies the directory containing test run results.