public class LockFeatureTests extends LockingFixture
locks
docBuilder, featureInfo, featureTypes, reqEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata
Constructor and Description |
---|
LockFeatureTests() |
Modifier and Type | Method and Description |
---|---|
void |
buildSimpleLockFeatureRequest()
Builds a DOM Document representing a LockFeature request entity.
|
(package private) Map<String,QName> |
fetchRandomFeatureIdentifier(List<QName> featureTypes)
Obtains the system-assigned identifier of an instance of some randomly
selected feature type.
|
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 . |
(package private) static QName |
randomFeatureType(List<QName> featureTypes)
Randomly selects a feature type name from the given list.
|
void |
resetNonexistentLock()
[
Test ] An attempt to reset a non-existent lock should produce a
service exception with error code "LockHasExpired". |
releaseAllLocks
addAttributesIfTestFailed, allProtocolsAndFeatureTypes, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, protocolAndAvailableFeatureTypes
public void buildSimpleLockFeatureRequest()
public void resetNonexistentLock()
Test
] An attempt to reset a non-existent lock should produce a
service exception with error code "LockHasExpired".
Note: The error code InvalidLockId
would seem
more appropriate here but that may only appear in a Transaction response
according to Table 3.
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
.
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).
public void lockAllFeaturesByType(ProtocolBinding binding, QName featureType)
Test
] Locks all feature instances of a given type using default
values for all locking options. If a feature type has no instances it is
ignored. The response entity must include a lockId attribute and the
wfs:FeaturesLocked element. The wfs:FeatureNotLocked element must not be
present.
binding
- The ProtocolBinding to use for the request.featureType
- A QName object denoting the feature type name.Map<String,QName> fetchRandomFeatureIdentifier(List<QName> featureTypes)
featureTypes
- A list of QName objects representing feature type names.Copyright © 2013. All Rights Reserved.