public class FeatureCollection extends CommonDataFixture
A.2.6. Feature Collection {root}/collections/{collectionId}
Author:
Lyn Goltz
  • Constructor Details

    • FeatureCollection

      public FeatureCollection()
  • Method Details

    • collections

      @DataProvider(name="collections") public Object[][] collections(org.testng.ITestContext testContext)

      collections.

      Parameters:
      testContext - a ITestContext object
      Returns:
      an array of Object objects
    • storeCollectionInTestContext

      @AfterClass public void storeCollectionInTestContext(org.testng.ITestContext testContext)

      storeCollectionInTestContext.

      Parameters:
      testContext - a ITestContext object
    • 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 - never null
      collection - the collection to test, never null
    • validateFeatureCollectionMetadataResponse

      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.
       
      Parameters:
      collection - the collection to test, never null