public class PropertyIsEqualToOperatorTests extends QueryFilterFixture
PropertyIs[Not]EqualTo
filter that compares the value of a property
against some specified value. The comparison may or may not be done in a
case-sensitive manner. If a property has multiple values, the
matchAction
parameter affects the scope of the comparison ("All",
"Any", "One").
dataSampler, GET_FEATURE_ENTITY, model
docBuilder, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata
Constructor and Description |
---|
PropertyIsEqualToOperatorTests() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addPropertyIsEqualToPredicate(Document request,
QName propertyName,
String value,
boolean matchCase,
String matchAction,
boolean negate)
Adds a
PropertyIsEqualTo predicate to a GetFeature request entity
with the given property name and literal value. |
(package private) Map<org.apache.xerces.xs.XSElementDeclaration,String> |
findMatchingPropertyValue(QName featureType)
Inspects sample data retrieved from the SUT and finds a value that
matches at least one simple property for the specified feature type.
|
void |
propertyIsEqualTo_caseSensitive(ProtocolBinding binding,
QName featureType)
[
Test ] Submits a GetFeature request containing a
PropertyIsEqualTo predicate that applies to some simple feature
property. |
void |
propertyIsNotEqualTo_caseSensitive(ProtocolBinding binding,
QName featureType)
[
Test ] Submits a GetFeature request containing a
PropertyIsNotEqualTo predicate that applies to some simple
feature property. |
buildRequestEntity, initQueryFilterFixture
addAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser
public void propertyIsEqualTo_caseSensitive(ProtocolBinding binding, QName featureType)
Test
] Submits a GetFeature request containing a
PropertyIsEqualTo
predicate that applies to some simple feature
property. The response entity must include only feature instances with
matching (case-sensitive) property values; if multiple values exist, at
least one must match (matchAction="Any").binding
- The ProtocolBinding to use for this request.featureType
- A QName representing the qualified name of some feature type.public void propertyIsNotEqualTo_caseSensitive(ProtocolBinding binding, QName featureType)
Test
] Submits a GetFeature request containing a
PropertyIsNotEqualTo
predicate that applies to some simple
feature property. The response entity must not include any features with
a matching (case-sensitive) property value; if multiple values exist, all
must satisfy the predicate (matchAction="All").binding
- The ProtocolBinding to use for this request.featureType
- A QName representing the qualified name of some feature type.void addPropertyIsEqualToPredicate(Document request, QName propertyName, String value, boolean matchCase, String matchAction, boolean negate)
PropertyIsEqualTo
predicate to a GetFeature request entity
with the given property name and literal value. The predicate is
structured as shown in the listing below.
<Filter xmlns="http://www.opengis.net/fes/2.0">
<PropertyIsEqualTo matchCase="true" matchAction="Any">
<Literal>value</Literal>
<ValueReference>tns:featureProperty</ValueReference>
</PropertyIsEqualTo>
</Filter>
request
- The request entity (/wfs:GetFeature).propertyName
- A QName that specifies the feature property to check.value
- The literal value to match the property value against.matchCase
- A boolean value indicating whether or not the comparison
should be case-sensitive.matchAction
- A String specifying how the predicate should be applied to a
multi-valued property; the default value is "Any".negate
- Negates the predicate by using the
PropertyIsNotEqualTo
predicate instead.Map<org.apache.xerces.xs.XSElementDeclaration,String> findMatchingPropertyValue(QName featureType)
featureType
- The qualified name of some feature type.Copyright © 2013. All Rights Reserved.