Class AbstractBaseGetTileFixture

java.lang.Object
org.opengeospatial.cite.wmts10.ets.testsuite.AbstractBaseGetFixture
org.opengeospatial.cite.wmts10.ets.testsuite.gettile.AbstractBaseGetTileFixture
Direct Known Subclasses:
GetTileCachingInfo, GetTileOfferings, GetTileParametersKvp, GetTileParametersRest, GetTileParametersSoap

public abstract class AbstractBaseGetTileFixture extends AbstractBaseGetFixture
Author:
Lyn Goltz (original), Jim Beatty (modified/fixed May/Jun/Jul-2017 for WMS and/or WMTS)
  • Constructor Details

    • AbstractBaseGetTileFixture

      public AbstractBaseGetTileFixture()
  • Method Details

    • buildGetTileRequest

      @BeforeClass public void buildGetTileRequest() throws XPathExpressionException
      Builds a {WmtsKvpRequest} representing a GetTile request.
      Throws:
      XPathExpressionException - in case bad XPath
    • setResultDirectory

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

      public void verifyGetTileSupported()
    • 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
    • storeSoapResponseImage

      protected void storeSoapResponseImage(jakarta.xml.soap.SOAPMessage soapResponse, String testGroup, String testName, String requestFormat)