public class InsertTests extends BaseFixture
docBuilder, featureInfo, featureTypes, reqEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata
Constructor and Description |
---|
InsertTests() |
Modifier and Type | Method and Description |
---|---|
void |
buildTransactionRequest()
Builds a DOM Document representing a Transaction request entity.
|
(package private) Node |
createFeatureInstance(QName featureType)
Creates a new representation of a feature instance.
|
void |
deleteInsertedFeatures()
Restores the WFS data store to its previous state by deleting all
features that were successfully created by test methods in this class.
|
(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.
|
void |
insertKnownFeature(ProtocolBinding binding,
QName featureType)
Submits a Transaction request to insert a feature instance of a type
known to the SUT.
|
(package private) void |
insertNewFeatureInstance(Document request,
Node feature) |
(package private) void |
insertRandomIdentifier(Element feature)
Inserts a user-assigned gml:identifier element having a random UUID
value.
|
addAttributesIfTestFailed, allProtocolsAndFeatureTypes, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, protocolAndAvailableFeatureTypes
public void deleteInsertedFeatures()
public void buildTransactionRequest()
public void insertKnownFeature(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).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.