public class AbstractFeatures extends CommonDataFixture
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractFeatures.CollectionResponseKey |
protected class |
AbstractFeatures.ResponseData |
| Modifier and Type | Field and Description |
|---|---|
(package private) String |
apiDef |
protected Map<AbstractFeatures.CollectionResponseKey,AbstractFeatures.ResponseData> |
collectionIdAndResponse |
protected URI |
iut |
modelUri, noOfCollectionsapiDefUri, geoJSONTestingCollection, requestLoggingFilter, responseLoggingFilter, rootUri, testingWktPOINT| Constructor and Description |
|---|
AbstractFeatures() |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Object[]> |
areaCollectionPaths(org.testng.ITestContext testContext) |
Iterator<Object[]> |
collectionPaths(org.testng.ITestContext testContext) |
Iterator<Object[]> |
corridorCollectionPaths(org.testng.ITestContext testContext) |
Iterator<Object[]> |
cubeCollectionPaths(org.testng.ITestContext testContext) |
protected String |
findFeaturesUrlForGeoJson(Map<String,Object> collection) |
protected Boolean |
isExplode(com.reprezen.kaizen.oasparser.model3.Parameter param) |
protected boolean |
isRequired(com.reprezen.kaizen.oasparser.model3.Parameter param) |
Iterator<Object[]> |
locationsCollectionPaths(org.testng.ITestContext testContext) |
Iterator<Object[]> |
positionCollectionPaths(org.testng.ITestContext testContext) |
void |
retrieveRequiredInformationFromTestContext(org.testng.ITestContext testContext) |
Iterator<Object[]> |
trajectoryCollectionPaths(org.testng.ITestContext testContext) |
(package private) void |
validateFeaturesProperty(AbstractFeatures.CollectionResponseKey collection)
Abstract Test 22, Test Method 2
|
(package private) void |
validateLinks(AbstractFeatures.CollectionResponseKey collection)
Abstract Test 22, Test Method 4 (Abstract Test 23)
|
(package private) void |
validateNumberReturned(AbstractFeatures.CollectionResponseKey collection)
Abstract Test 22, Test Method 7 (Abstract Test 26)
|
void |
validateTimeStamp(AbstractFeatures.CollectionResponseKey collection)
Abstract Test 22, Test Method 5 (Abstract Test 24)
|
void |
validateTypeProperty(AbstractFeatures.CollectionResponseKey collection)
Abstract Test 22, Test Method 1
|
createListOfMediaTypesToSupportForFeatureCollectionsAndFeatures, createListOfMediaTypesToSupportForFeatureCollectionsAndFeatures, createListOfMediaTypesToSupportForOtherResources, getModel, noOfCollections, requirementClasses, retrieveApiModelclearMessages, constructDateTimeValue, getRequest, getResponse, init, initCommonFixtureString apiDef
protected final Map<AbstractFeatures.CollectionResponseKey,AbstractFeatures.ResponseData> collectionIdAndResponse
protected URI iut
public Iterator<Object[]> locationsCollectionPaths(org.testng.ITestContext testContext)
public Iterator<Object[]> positionCollectionPaths(org.testng.ITestContext testContext)
public Iterator<Object[]> areaCollectionPaths(org.testng.ITestContext testContext)
public Iterator<Object[]> trajectoryCollectionPaths(org.testng.ITestContext testContext)
public Iterator<Object[]> cubeCollectionPaths(org.testng.ITestContext testContext)
public Iterator<Object[]> corridorCollectionPaths(org.testng.ITestContext testContext)
public void retrieveRequiredInformationFromTestContext(org.testng.ITestContext testContext)
public void validateTypeProperty(AbstractFeatures.CollectionResponseKey collection)
Abstract Test 22: /ats/core/fc-response Test Purpose: Validate that the Feature Collections complies with the require structure and contents. Requirement: /req/core/fc-response Test Method 1. Validate that the type property is present and has a value of FeatureCollection
collection - the collection under test, never nullvoid validateFeaturesProperty(AbstractFeatures.CollectionResponseKey collection)
Abstract Test 22: /ats/core/fc-response Test Purpose: Validate that the Feature Collections complies with the require structure and contents. Requirement: /req/core/fc-response Test Method 2. Validate the features property is present and that it is populated with an array of feature items.
collection - the collection under test, never nullvoid validateLinks(AbstractFeatures.CollectionResponseKey collection)
Abstract Test 22: /ats/core/fc-response Test Purpose: Validate that the Feature Collections complies with the require structure and contents. Requirement: /req/core/fc-response Test Method 4. If the links property is present, validate that all entries comply with /ats/core/fc-links
Abstract Test 23: /ats/core/fc-links Test Purpose: Validate that the required links are included in the Collections document. Requirement: /req/core/fc-links, /req/core/fc-rel-type Test Method: Verify that the response document includes: 1. a link to this response document (relation: self), 2. a link to the response document in every other media type supported by the server (relation: alternate). Verify that all links include the rel and type link parameters.
collection - the collection under test, never nullpublic void validateTimeStamp(AbstractFeatures.CollectionResponseKey collection)
Abstract Test 22: /ats/core/fc-response Test Purpose: Validate that the Feature Collections complies with the require structure and contents. Requirement: /req/core/fc-response Test Method 5. If the timeStamp property is present, validate that it complies with /ats/core/fc-timeStamp
Abstract Test 24: /ats/core/fc-timeStamp Test Purpose: Validate the timeStamp parameter returned with a Features response Requirement: /req/core/fc-timeStamp Test Method: Validate that the timeStamp value is set to the time when the response was generated.
collection - the collection under test, never nullvoid validateNumberReturned(AbstractFeatures.CollectionResponseKey collection)
Abstract Test 22: /ats/core/fc-response Test Purpose: Validate that the Feature Collections complies with the require structure and contents. Requirement: /req/core/fc-response Test Method 7. If the numberReturned property is present, validate that it complies with /ats/core/fc-numberReturned
Abstract Test 26: /ats/core/fc-numberReturned Test Purpose: Validate the numberReturned parameter returned with a Features response Requirement: /req/core/fc-numberReturned Test Method: Validate that the numberReturned value is identical to the number of features in the response.
collection - the collection under test, never nullprotected boolean isRequired(com.reprezen.kaizen.oasparser.model3.Parameter param)
protected Boolean isExplode(com.reprezen.kaizen.oasparser.model3.Parameter param)
Copyright © 2022 Open Geospatial Consortium. All rights reserved.