public class InsertTests extends TransactionFixture
dataSampler, model
docBuilder, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata
Constructor and Description |
---|
InsertTests() |
Modifier and Type | Method and Description |
---|---|
(package private) Node |
createFeatureInstance(QName featureType)
Creates a new representation of a feature instance.
|
(package private) List<String> |
extractFeatureIdentifiers(Document entity)
Extracts a list of identifiers for features that were successfully
inserted.
|
void |
insertInvalidFeature()
Submits a Transaction request to insert a feature instance of a type not
recognized by the SUT.
|
(package private) void |
insertNewFeature(Document request,
Node feature)
Appends a wfs:Insert element to the document element in the given request
entity.
|
(package private) void |
insertRandomIdentifier(Element feature)
Inserts a user-assigned gml:identifier element having a random UUID
value.
|
void |
insertSupportedFeature(ProtocolBinding binding,
QName featureType)
Submits a Transaction request to insert a feature instance of a type
supported by the SUT.
|
void |
removeNewFeatures()
Restores the WFS data store to its previous state by deleting all
features that were successfully inserted by test methods in this class.
|
buildTransactionRequest, initTransactionFixture, trxTestParameters
addAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser
public void removeNewFeatures()
public void insertSupportedFeature(ProtocolBinding binding, QName featureType)
binding
- A supported message binding.featureType
- A QName representing the qualified name of some feature type.public void insertInvalidFeature()
InvalidValue
is expected in
response.List<String> extractFeatureIdentifiers(Document entity)
entity
- A Document representing a transaction response entity
(wfs:TransactionResponse).void insertNewFeature(Document request, Node feature)
request
- A wfs:Transaction request entity.feature
- A Node representing a feature instance.Node createFeatureInstance(QName featureType)
featureType
- A QName representing the qualified name of some feature type.void insertRandomIdentifier(Element feature)
feature
- An Element node representing a GML feature.Copyright © 2013. All Rights Reserved.