public class LockFeatureTests extends LockingFixture
Sources
dataSampler, locks, storedQueryId
docBuilder, ETS_PKG, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata, wfsVersion
Constructor and Description |
---|
LockFeatureTests() |
Modifier and Type | Method and Description |
---|---|
void |
buildSimpleLockFeatureRequest()
Builds a DOM Document representing a LockFeature request entity.
|
void |
lockAllFeaturesByType(ProtocolBinding binding,
QName featureType)
[
Test ] Locks all feature instances of a given type using default
values for all locking options. |
void |
lockFeatureAlreadyLocked()
[
Test ] A feature instance may be locked by only one lock. |
void |
lockFeatureAndAttemptDelete()
[
Test ] Submits a request to lock a feature instance; within this
interval an attempt to delete the instance without the correct lock
identifier should fail with exception code MissingParameterValue . |
void |
lockFeatureWithLockIdAndQuery()
[
Test ] An attempt to reset a lock with locKId and fes:AbstractQueryExpression
should produce a service exception with error code "OperationParsingFailed" and HTTP
status code 400 (Bad Request). |
initLockingFixture, releaseAllLocks
addAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, setWfsClient
public void buildSimpleLockFeatureRequest()
public void lockFeatureAndAttemptDelete()
Test
] Submits a request to lock a feature instance; within this
interval an attempt to delete the instance without the correct lock
identifier should fail with exception code MissingParameterValue
.
Sources
public void lockFeatureAlreadyLocked()
Test
] A feature instance may be locked by only one lock. An
attempt to establish another lock should fail with exception code
CannotLockAllFeatures
if lockAction = "ALL" (the default value).
Sources
public void lockAllFeaturesByType(ProtocolBinding binding, QName featureType)
Test
] Locks all feature instances of a given type using default
values for all locking options. If no data exist for a given feature type
it is skipped. The response entity must include a lockId attribute and
the wfs:FeaturesLocked element. The wfs:FeatureNotLocked element must not
be present.
Sources
binding
- The ProtocolBinding to use for the request.featureType
- A QName object denoting the feature type name.public void lockFeatureWithLockIdAndQuery()
Test
] An attempt to reset a lock with locKId and fes:AbstractQueryExpression
should produce a service exception with error code "OperationParsingFailed" and HTTP
status code 400 (Bad Request).
Note: The WFS 2.0.2 specification specifies this behaviour in detail (12.2.4.2 lockId parameter): "If both a lockId parameter and one or more fes:AbstractQueryExpression elements are included in a LockFeature request then the server shall raise an OperationParsingFailed exception (see 7.5).[24]"
Sources
Copyright © 2022 Open Geospatial Consortium. All rights reserved.