Class QueryableWMS
java.lang.Object
de.latlon.ets.wms13.core.dgiwg.testsuite.QueryableWMS
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enumTest verdicts assigned in CTL test suites. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddiscoverBaseControllerEndpoint(org.testng.ITestContext testContext) ThisBeforeClassconfiguration method discovers the location of the test run controller for the base OGC test suite.(package private) URIdiscoverTestRunController(URI testEndpoint) Interacts with the test execution service (TES) in order to discover the URI for the base WMS test run controller.voidinitTestFixture(org.testng.ITestContext testContext) ThisBeforeTestconfiguration method initializes the JAX-RS client component that is used to interact with the TES.voidRuns the OGC WMS test suite by submitting a (GET) request to the test run controller.(package private) FilesaveEntityToFile(jakarta.ws.rs.core.Response rsp) Writes the content of the response entity to a temporary file.
-
Constructor Details
-
QueryableWMS
public QueryableWMS()
-
-
Method Details
-
initTestFixture
@BeforeTest public void initTestFixture(org.testng.ITestContext testContext) ThisBeforeTestconfiguration 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) ThisBeforeClassconfiguration 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
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
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
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.
-