public class Update extends TransactionFixture
dataSampler, model
docBuilder, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata
Constructor and Description |
---|
Update() |
Modifier and Type | Method and Description |
---|---|
(package private) String |
newPropertyValue(org.apache.xerces.xs.XSElementDeclaration prop,
List<String> propValues)
Returns a new property value that conforms to the applicable simple type
definition (xs:string, xs:dateTime, xs:double).
|
void |
restoreModifiedFeatures()
Attempts to restore the WFS data store to its previous state by replacing
all modified features with their original representations.
|
void |
updateBoundedByWithKMLPoint()
[
Test ] Submits a Transaction request to update a property
(gml:boundedBy) with an invalid value (kml:Point). |
void |
updateGMLName(ProtocolBinding binding,
QName featureType)
[
Test ] Submits a Transaction request to update the first name
(gml:name[1]) of an existing feature instance. |
void |
updateSimplePropertyValue(ProtocolBinding binding,
QName featureType)
[
Test ] Submits a request to update a simple property value, one
that is based on a built-in XML Schema datatype (including enumerated
types). |
buildTransactionRequest, initTransactionFixture, trxTestParameters
addAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser
public void restoreModifiedFeatures()
public void updateGMLName(ProtocolBinding binding, QName featureType)
Test
] Submits a Transaction request to update the first name
(gml:name[1]) of an existing feature instance. The test is run for all
supported transaction bindings and available feature types. The response
entity (wfs:TransactionResponse) must be schema-valid and contain the
wfs:UpdateResults element.
binding
- A supported transaction request binding.featureType
- A QName representing the name of some feature type for which
data are available.public void updateBoundedByWithKMLPoint()
Test
] Submits a Transaction request to update a property
(gml:boundedBy) with an invalid value (kml:Point). An ExceptionReport
(with status code 400) containing the exception code InvalidValue
is expected in response.
public void updateSimplePropertyValue(ProtocolBinding binding, QName featureType)
Test
] Submits a request to update a simple property value, one
that is based on a built-in XML Schema datatype (including enumerated
types). The test is run for all supported transaction bindings and
available feature types. The response entity (wfs:TransactionResponse)
must contain the wfs:UpdateResults element.
binding
- A supported message binding.featureType
- A QName representing the name of some feature type for which
data are available.String newPropertyValue(org.apache.xerces.xs.XSElementDeclaration prop, List<String> propValues)
prop
- A property (element) declaration.propValues
- A List of known property values (may be empty).Copyright © 2013. All rights reserved.