Class QueryableWMS

java.lang.Object
de.latlon.ets.wms13.core.dgiwg.testsuite.QueryableWMS

public class QueryableWMS extends Object
The DGIWG WMS profile requires that a conforming implementation satisfies the requirements of the Queryable WMS conformance class in accord with the base WMS standard. See Table 1, cl. 6.2: Requirement 1.

The OGC test suite can be invoked using a RESTful API provided by a test execution service (TES). The default TES is the OGC beta installation (located at http://cite.opengeospatial.org/te2/), but this can be overridden using the "tes" test run argument.

See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    (package private) static enum 
    Test verdicts assigned in CTL test suites.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    discoverBaseControllerEndpoint(org.testng.ITestContext testContext)
    This BeforeClass configuration method discovers the location of the test run controller for the base OGC test suite.
    (package private) URI
    Interacts with the test execution service (TES) in order to discover the URI for the base WMS test run controller.
    void
    initTestFixture(org.testng.ITestContext testContext)
    This BeforeTest configuration method initializes the JAX-RS client component that is used to interact with the TES.
    void
    Runs the OGC WMS test suite by submitting a (GET) request to the test run controller.
    (package private) File
    saveEntityToFile(jakarta.ws.rs.core.Response rsp)
    Writes the content of the response entity to a temporary file.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • QueryableWMS

      public QueryableWMS()
  • Method Details

    • initTestFixture

      @BeforeTest public void initTestFixture(org.testng.ITestContext testContext)
      This BeforeTest configuration method initializes the JAX-RS client component that is used to interact with the TES.
      Parameters:
      testContext - Information about the test run.
    • discoverBaseControllerEndpoint

      @BeforeClass public void discoverBaseControllerEndpoint(org.testng.ITestContext testContext)
      This BeforeClass configuration method discovers the location of the test run controller for the base OGC test suite. If it cannot be found, the base tests are skipped.
      Parameters:
      testContext - Information about the test run.
    • invokeBaseTestSuite

      public void invokeBaseTestSuite() throws IOException
      Runs the OGC WMS test suite by submitting a (GET) request to the test run controller. The following test run arguments are set:
      • capabilities-url : A URI that refers to a WMS capabilities document
      • queryable: "queryable"
      Throws:
      IOException - If an I/O error occurs while trying to read or write the test run results.
    • saveEntityToFile

      File saveEntityToFile(jakarta.ws.rs.core.Response rsp) throws IOException
      Writes the content of the response entity to a temporary file.
      Parameters:
      rsp - An HTTP response message.
      Returns:
      A File containing the entity body.
      Throws:
      IOException - If an I/O error occurs.
    • discoverTestRunController

      URI discoverTestRunController(URI testEndpoint)
      Interacts with the test execution service (TES) in order to discover the URI for the base WMS test run controller. This controller executes the standard OGC test suite. The end-point is given by the URI template shown below, where {tes} is the root URI of the test execution service and {version} is the version of the WMS test suite.
       {tes}/rest/suites/wms/{version}/run
       
      Parameters:
      testEndpoint - An 'http' URI that refers to the test execution service.
      Returns:
      The URI for the standard WMS test run controller.