public class InsertTests extends TransactionFixture
dataSampler, modeldocBuilder, ETS_PKG, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata, wfsVersion| 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 |
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, trxTestParametersaddAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, setWfsClientpublic 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).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 © 2016 Open Geospatial Consortium. All rights reserved.