Class AbstractFeatures
java.lang.Object
org.opengis.cite.ogcapiedr10.CommonFixture
org.opengis.cite.ogcapiedr10.CommonDataFixture
org.opengis.cite.ogcapiedr10.collections.AbstractFeatures
- Direct Known Subclasses:
 AreaCollections,CorridorCollections,CubeCollections,LocationsCollections,PositionCollections,TrajectoryCollections
- Author:
 - Lyn Goltz
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected class - 
Field Summary
FieldsModifier and TypeFieldDescription(package private) Stringprotected final Map<AbstractFeatures.CollectionResponseKey,AbstractFeatures.ResponseData> protected URIFields inherited from class org.opengis.cite.ogcapiedr10.CommonDataFixture
modelUri, noOfCollectionsFields inherited from class org.opengis.cite.ogcapiedr10.CommonFixture
apiDefUri, DEFAULT_BUFFER_SIZE, geoJSONTestingCollection, requestLoggingFilter, responseLoggingFilter, rootUri, testingWktPOINT - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionareaCollectionPaths(org.testng.ITestContext testContext) collectionPaths(org.testng.ITestContext testContext) corridorCollectionPaths(org.testng.ITestContext testContext) cubeCollectionPaths(org.testng.ITestContext testContext) protected StringfindFeaturesUrlForGeoJson(Map<String, Object> collection) protected BooleanisExplode(com.reprezen.kaizen.oasparser.model3.Parameter param) protected booleanisRequired(com.reprezen.kaizen.oasparser.model3.Parameter param) locationsCollectionPaths(org.testng.ITestContext testContext) positionCollectionPaths(org.testng.ITestContext testContext) voidretrieveRequiredInformationFromTestContext(org.testng.ITestContext testContext) trajectoryCollectionPaths(org.testng.ITestContext testContext) (package private) voidAbstract Test 22, Test Method 2(package private) voidvalidateLinks(AbstractFeatures.CollectionResponseKey collection) Abstract Test 22, Test Method 4 (Abstract Test 23)(package private) voidAbstract Test 22, Test Method 7 (Abstract Test 26)voidAbstract Test 22, Test Method 5 (Abstract Test 24)voidAbstract Test 22, Test Method 1Methods inherited from class org.opengis.cite.ogcapiedr10.CommonDataFixture
createListOfMediaTypesToSupportForFeatureCollectionsAndFeatures, createListOfMediaTypesToSupportForFeatureCollectionsAndFeatures, createListOfMediaTypesToSupportForOtherResources, getModel, noOfCollections, requirementClasses, retrieveApiModelMethods inherited from class org.opengis.cite.ogcapiedr10.CommonFixture
clearMessages, constructDateTimeValue, convertInputStreamToString, getCollectionResponse, getRequest, getResponse, init, initCommonFixture 
- 
Field Details
- 
apiDef
String apiDef - 
collectionIdAndResponse
protected final Map<AbstractFeatures.CollectionResponseKey,AbstractFeatures.ResponseData> collectionIdAndResponse - 
iut
 
 - 
 - 
Constructor Details
- 
AbstractFeatures
public AbstractFeatures() 
 - 
 - 
Method Details
- 
collectionPaths
 - 
locationsCollectionPaths
 - 
positionCollectionPaths
 - 
areaCollectionPaths
 - 
trajectoryCollectionPaths
 - 
cubeCollectionPaths
 - 
corridorCollectionPaths
 - 
retrieveRequiredInformationFromTestContext
@BeforeClass public void retrieveRequiredInformationFromTestContext(org.testng.ITestContext testContext)  - 
validateTypeProperty
Abstract Test 22, Test Method 1Abstract 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
- Parameters:
 collection- the collection under test, nevernull
 - 
validateFeaturesProperty
Abstract Test 22, Test Method 2Abstract 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.
- Parameters:
 collection- the collection under test, nevernull
 - 
validateLinks
Abstract Test 22, Test Method 4 (Abstract Test 23)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.
- Parameters:
 collection- the collection under test, nevernull
 - 
validateTimeStamp
Abstract Test 22, Test Method 5 (Abstract Test 24)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.
- Parameters:
 collection- the collection under test, nevernull
 - 
validateNumberReturned
Abstract Test 22, Test Method 7 (Abstract Test 26)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.
- Parameters:
 collection- the collection under test, nevernull
 - 
findFeaturesUrlForGeoJson
 - 
isRequired
protected boolean isRequired(com.reprezen.kaizen.oasparser.model3.Parameter param)  - 
isExplode
 
 -