public class InsertTests extends TransactionFixture
dataSampler, model
docBuilder, ETS_PKG, 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()
[
Test ] 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)
[
Test ] 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, setWfsClient
public void removeNewFeatures()
public void insertSupportedFeature(ProtocolBinding binding, QName featureType)
Test
] Submits a Transaction request to insert a feature instance
of a type supported by the SUT. The test is run for all supported
Transaction request bindings and feature types. The response entity
(wfs:TransactionResponse) must be schema-valid and contain the
wfs:InsertResults element.binding
- A supported message binding.featureType
- A QName representing the qualified name of some feature type.public void insertInvalidFeature()
Test
] Submits a Transaction request to insert a feature instance
of a type not recognized by the SUT. An ExceptionReport (with status code
400) containing the exception code 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 © 2014. All rights reserved.