public class Update extends TransactionFixture
dataSampler, model
docBuilder, ETS_PKG, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata, wfsVersion
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.
|
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, setModel, trxTestParameters
addAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, setWfsClient
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.
Sources
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.
Sources
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.
Sources
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)
The following XML Schema data types are recognized:
prop
- A property (element) declaration.propValues
- A List of known property values (may be empty).Copyright © 2022 Open Geospatial Consortium. All rights reserved.