public class ReplaceTests extends TransactionFixture
Modifier and Type | Field and Description |
---|---|
static String |
REPL_PROPS
Identifier for the collection of replacement property values.
|
dataSampler, model
docBuilder, ETS_PKG, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata, wfsVersion
Constructor and Description |
---|
ReplaceTests() |
Modifier and Type | Method and Description |
---|---|
(package private) Element |
createReplacementFeature(Element originalFeature)
Creates a new feature representation by cloning and modifying the
original instance.
|
void |
replaceFeature(ProtocolBinding binding,
QName featureType)
[
Test ] Submits a Transaction request to replace an existing
feature instance. |
void |
restoreModifiedFeatures()
Restores the WFS data store to its previous state by replacing all
modified features with their original representations.
|
buildTransactionRequest, initTransactionFixture, setModel, trxTestParameters
addAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, setWfsClient
public static final String REPL_PROPS
public void restoreModifiedFeatures()
public void replaceFeature(ProtocolBinding binding, QName featureType)
Test
] Submits a Transaction request to replace an existing
feature instance. The test is run for all supported protocol bindings
(except HTTP GET) and feature types. The response entity
(wfs:TransactionResponse) must be schema-valid.binding
- A supported transaction request binding.featureType
- A QName representing the qualified name of some feature type.Element createReplacementFeature(Element originalFeature)
The resulting Element node will have associated user data with the key
value REPL_PROPS
. The user data are represented by a
Map<XSElementDeclaration, Object> object containing a
collection of property-value pairs, where each key is an element
declaration denoting a property and the corresponding value is the
replacement value.
originalFeature
- The original feature instance (unmodified).Copyright © 2022 Open Geospatial Consortium. All rights reserved.