public class FeatureCollection extends CommonDataFixture
noOfCollections
requestLoggingFilter, responseLoggingFilter, rootUri
Constructor and Description |
---|
FeatureCollection() |
Modifier and Type | Method and Description |
---|---|
Object[][] |
collections(org.testng.ITestContext testContext) |
void |
storeCollectionInTestContext(org.testng.ITestContext testContext) |
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.
|
void |
validateFeatureCollectionMetadataResponse(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.
|
createListOfMediaTypesToSupportForFeatureCollectionsAndFeatures, createListOfMediaTypesToSupportForFeatureCollectionsAndFeatures, createListOfMediaTypesToSupportForOtherResources, getApiModel, noOfCollections, requirementClasses, retrieveApiModel
clearMessages, getRequest, getResponse, init, initCommonFixture
public Object[][] collections(org.testng.ITestContext testContext)
public void storeCollectionInTestContext(org.testng.ITestContext testContext)
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.
testContext
- never null
collection
- the collection to test, never null
public void validateFeatureCollectionMetadataResponse(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. 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.
collection
- the collection to test, never null
Copyright © 2024 Open Geospatial Consortium. All rights reserved.