Class BBoxCrsParameter
java.lang.Object
org.opengis.cite.ogcapifeatures10.conformance.CommonFixture
org.opengis.cite.ogcapifeatures10.conformance.crs.query.bboxcrs.AbstractBBoxCrs
org.opengis.cite.ogcapifeatures10.conformance.crs.query.bboxcrs.BBoxCrsParameter
Abstract Test 8: /conf/crs/bbox-crs-parameter Test Purpose: Verify that the parameter bbox-crs has been implemented correctly Requirement: /req/crs/fc-bbox-crs-definition, /req/crs/bbox-crs-action Test Method For every CRS identifier advertized by the Web API that is known to the test engine and for which the test engine can convert geometries between the CRS and the default CRS of the Web API ("known CRS") execute the following test. Skip the test for unknown CRSs. 1. For each spatial feature collection collectionId and every GML or GeoJSON feature representation supported by the Web API, send a request with the parameters bbox and bbox-crs to /collections/{collectionId}/items for every known CRS. Use a bbox value in the spatial extent of the collection, converted to the known CRS. Send the same request, but with no bbox-crs parameter and a bbox value in the default CRS. Do not include a crs parameter in the requests. Verify that the responses include the same features.
- Author:
- Lyn Goltz
-
Field Summary
Fields inherited from class org.opengis.cite.ogcapifeatures10.conformance.crs.query.bboxcrs.AbstractBBoxCrs
BBOX_CRS_PARAM, BBOX_PARAM, collectionIdToCrs, collectionIdToDefaultCrs, collectionsResponses
Fields inherited from class org.opengis.cite.ogcapifeatures10.conformance.CommonFixture
requestLoggingFilter, responseLoggingFilter, rootUri
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectionCrs
(org.testng.ITestContext testContext) collectionCrs.collectionDefaultCrs
(org.testng.ITestContext testContext) collectionDefaultCrs.void
verifyBboxCrsParameter
(String collectionId, io.restassured.path.json.JsonPath collection, CoordinateSystem crs, CoordinateSystem defaultCrs) verifyBboxCrsParameter.void
verifyBboxCrsParameterWithDefaultCrs
(String collectionId, io.restassured.path.json.JsonPath collection, CoordinateSystem defaultCrs) verifyBboxCrsParameterWithDefaultCrs.Methods inherited from class org.opengis.cite.ogcapifeatures10.conformance.crs.query.bboxcrs.AbstractBBoxCrs
assertSameFeatures, retrieveRequiredInformationFromTestContext
Methods inherited from class org.opengis.cite.ogcapifeatures10.conformance.CommonFixture
clearMessages, getRequest, getResponse, init, initCommonFixture
-
Constructor Details
-
BBoxCrsParameter
public BBoxCrsParameter()
-
-
Method Details
-
collectionDefaultCrs
@DataProvider(name="collectionDefaultCrs") public Iterator<Object[]> collectionDefaultCrs(org.testng.ITestContext testContext) collectionDefaultCrs.
- Parameters:
testContext
- aITestContext
object- Returns:
- a
Iterator
object
-
collectionCrs
@DataProvider(name="collectionCrsAndDefaultCrs") public Iterator<Object[]> collectionCrs(org.testng.ITestContext testContext) collectionCrs.
- Parameters:
testContext
- aITestContext
object- Returns:
- a
Iterator
object
-
verifyBboxCrsParameterWithDefaultCrs
public void verifyBboxCrsParameterWithDefaultCrs(String collectionId, io.restassured.path.json.JsonPath collection, CoordinateSystem defaultCrs) verifyBboxCrsParameterWithDefaultCrs.
- Parameters:
collectionId
- the id of the collection, nevernull
collection
- the /collection object, nevernull
defaultCrs
- the defaultCrs of the collection, nevernull
-
verifyBboxCrsParameter
public void verifyBboxCrsParameter(String collectionId, io.restassured.path.json.JsonPath collection, CoordinateSystem crs, CoordinateSystem defaultCrs) verifyBboxCrsParameter.
- Parameters:
collectionId
- the id of the collection, nevernull
collection
- the /collection object, nevernull
crs
- the crs to test, nevernull
defaultCrs
- the defaultCrs of the collection, nevernull
-