public class BasicGetFeatureTests extends BaseFixture
Modifier and Type | Field and Description |
---|---|
(package private) Validator |
hintsValidator |
docBuilder, ETS_PKG, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata, wfsVersion
Constructor and Description |
---|
BasicGetFeatureTests() |
Modifier and Type | Method and Description |
---|---|
void |
buildRequestEntity()
Builds a DOM Document node representing the entity body for a GetFeature
request.
|
void |
buildValidator()
Creates a special XML Schema validator that uses schema location hints
specified in an XML instance document.
|
void |
getFeatureInOtherCRS()
[
Test ] Submits a request for geometry representations in some
other (non-default) CRS that is supported by the IUT, as indicated by the
value of the wfs:Query/@srsName attribute or srsName query
parameter. |
void |
getFeatureInUnsupportedCRS()
[
Test ] Submits a request for geometry representations in a
non-existent CRS, as indicated by the value of the
wfs:Query/@srsName attribute or srsName parameter. |
void |
getFeaturesByType(ProtocolBinding binding,
QName featureType)
[
Test ] Submits a minimal GetFeature request (without a filter
predicate) for feature types listed in the WFS the capabilities document. |
(package private) QName |
getFeatureTypeWithInstanceData()
Gets the name of a feature type for which instances exist.
|
void |
resetValidator()
Resets the validator to its original configuration.
|
(package private) void |
setFeatureAvailability(FeatureTypeInfo featureInfo,
Document entity)
Sets the availability status of instances of a given feature type
according to the content of a GetFeature response entity.
|
addAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, setWfsClient
Validator hintsValidator
public void buildValidator()
public void buildRequestEntity()
public void resetValidator()
public void getFeaturesByType(ProtocolBinding binding, QName featureType)
Test
] Submits a minimal GetFeature request (without a filter
predicate) for feature types listed in the WFS the capabilities document.
The test is run for all supported protocol bindings and feature types.
The response entity (wfs:FeatureCollection) must be schema-valid and
contain only instances of the requested type as members.binding
- A supported message binding.featureType
- A QName representing the qualified name of some feature type.public void getFeatureInOtherCRS()
Test
] Submits a request for geometry representations in some
other (non-default) CRS that is supported by the IUT, as indicated by the
value of the wfs:Query/@srsName attribute or srsName query
parameter. The test is skipped if no alternatives are offered for any
available feature type.public void getFeatureInUnsupportedCRS()
Test
] Submits a request for geometry representations in a
non-existent CRS, as indicated by the value of the
wfs:Query/@srsName attribute or srsName parameter. An
exception is expected in response, with status code 400 and OGC exception
code "InvalidParameterValue".void setFeatureAvailability(FeatureTypeInfo featureInfo, Document entity)
true
if the response entity contains at least one
instance.featureInfo
- A FeatureTypeInfo object that provides information about a
feature type.entity
- A GetFeature response entity (wfs:FeatureCollection).QName getFeatureTypeWithInstanceData()
null
if no
data are available.Copyright © 2022 Open Geospatial Consortium. All rights reserved.