Class FeatureCollection
java.lang.Object
org.opengis.cite.ogcapifeatures10.conformance.CommonFixture
org.opengis.cite.ogcapifeatures10.conformance.CommonDataFixture
org.opengis.cite.ogcapifeatures10.conformance.core.collections.FeatureCollection
A.2.6. Feature Collection {root}/collections/{collectionId}
- Author:
- Lyn Goltz
-
Field Summary
Fields inherited from class org.opengis.cite.ogcapifeatures10.conformance.CommonDataFixture
noOfCollectionsFields inherited from class org.opengis.cite.ogcapifeatures10.conformance.CommonFixture
requestLoggingFilter, responseLoggingFilter, rootUri -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[][]collections(org.testng.ITestContext testContext) collections.voidstoreCollectionInTestContext(org.testng.ITestContext testContext) storeCollectionInTestContext.voidvalidateFeatureCollectionMetadataOperation(org.testng.ITestContext testContext, Map<String, Object> collection) Abstract Test 11: /ats/core/sfc-md-op Test Purpose: Validate that the Collection content can be retrieved from the expected location.voidvalidateFeatureCollectionMetadataResponse(Map<String, Object> collection) Abstract Test 12: /ats/core/sfc-md-success Test Purpose: Validate that the Collection content complies with the required structure and contents.Methods inherited from class org.opengis.cite.ogcapifeatures10.conformance.CommonDataFixture
createListOfMediaTypesToSupportForFeatureCollectionsAndFeatures, createListOfMediaTypesToSupportForFeatureCollectionsAndFeatures, createListOfMediaTypesToSupportForOtherResources, getApiModel, noOfCollections, requirementClasses, retrieveApiModelMethods inherited from class org.opengis.cite.ogcapifeatures10.conformance.CommonFixture
clearMessages, getRequest, getResponse, init, initCommonFixture
-
Constructor Details
-
FeatureCollection
public FeatureCollection()
-
-
Method Details
-
collections
@DataProvider(name="collections") public Object[][] collections(org.testng.ITestContext testContext) collections.
- Parameters:
testContext- aITestContextobject- Returns:
- an array of
Objectobjects
-
storeCollectionInTestContext
@AfterClass public void storeCollectionInTestContext(org.testng.ITestContext testContext) storeCollectionInTestContext.
- Parameters:
testContext- aITestContextobject
-
validateFeatureCollectionMetadataOperation
public void validateFeatureCollectionMetadataOperation(org.testng.ITestContext testContext, Map<String, Object> collection) Abstract Test 11: /ats/core/sfc-md-op Test Purpose: Validate that the Collection content can be retrieved from the expected location. Requirement: /req/core/sfc-md-op Test Method: For every Feature Collection described in the Collections content, issue an HTTP GET request to the URL /collections/{collectionId} where {collectionId} is the id property for the collection. Validate that a Collection was returned with a status code 200. Validate the contents of the returned document using test /ats/core/sfc-md-success.- Parameters:
testContext- nevernullcollection- the collection to test, nevernull
-
validateFeatureCollectionMetadataResponse
Abstract Test 12: /ats/core/sfc-md-success Test Purpose: Validate that the Collection content complies with the required structure and contents. Requirement: /req/core/sfc-md-success Test Method: Verify that the content of the response is consistent with the content for this Feature Collection in the /collections response. That is, the values for id, title, description and extent are identical.
- Parameters:
collection- the collection to test, nevernull
-