Class PropertyIsNullOperatorTests
java.lang.Object
org.opengis.cite.iso19142.BaseFixture
org.opengis.cite.iso19142.basic.filter.QueryFilterFixture
org.opengis.cite.iso19142.basic.filter.PropertyIsNullOperatorTests
Tests the response to a GetFeature request that includes a
PropertyIsNull
filter predicate; this operator tests for the existence of a specified feature
property.
Sources
- ISO 19142:2010, cl. A.1.2: Basic WFS
- ISO 19143:2010, cl. 7.7.3.5: PropertyIsNull operator
- ISO 19143:2010, cl. A.6: Test cases for standard filter
-
Field Summary
Fields inherited from class org.opengis.cite.iso19142.basic.filter.QueryFilterFixture
dataSampler, GET_FEATURE_MINIMAL, model, temporalPropertiesFields inherited from class org.opengis.cite.iso19142.BaseFixture
docBuilder, ETS_PKG, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata, wfsVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddPropertyIsNullPredicate(Document request, QName propertyName, boolean negate) Adds aPropertyIsNullpredicate to a GetFeature request entity using the given property name.voidgmlNameIsNull(ProtocolBinding binding, QName featureType) [Test] Submits a GetFeature request containing aPropertyIsNullpredicate designating the gml:name property.voidpropertyIsNotNull(ProtocolBinding binding, QName featureType) [Test] Submits a GetFeature request containing aNot/PropertyIsNullpredicate designating some feature property (the last one in document order).Methods inherited from class org.opengis.cite.iso19142.basic.filter.QueryFilterFixture
buildRequestEntity, discardResponseEntity, findTemporalProperties, getModel, initQueryFilterFixtureMethods inherited from class org.opengis.cite.iso19142.BaseFixture
addAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, setWfsClient
-
Constructor Details
-
PropertyIsNullOperatorTests
public PropertyIsNullOperatorTests()
-
-
Method Details
-
gmlNameIsNull
[Test] Submits a GetFeature request containing aPropertyIsNullpredicate designating the gml:name property. The response entity must include only features that lack the specified property.- Parameters:
binding- The ProtocolBinding to use for this request.featureType- A QName representing the qualified name of some feature type.
-
propertyIsNotNull
[Test] Submits a GetFeature request containing aNot/PropertyIsNullpredicate designating some feature property (the last one in document order). The response entity must include only features that include the specified property.- Parameters:
binding- The ProtocolBinding to use for this request.featureType- A QName representing the qualified name of some feature type.
-
addPropertyIsNullPredicate
Adds aPropertyIsNullpredicate to a GetFeature request entity using the given property name.<Filter xmlns="http://www.opengis.net/fes/2.0"> <PropertyIsNull> <ValueReference>tns:featureProperty</ValueReference> </PropertyIsNull> </Filter>- Parameters:
request- The request entity (/wfs:GetFeature).propertyName- A QName that specifies the feature property to check.negate- Negates the predicate by inserting a<Not>operator (logical complement).
-