public class GetFeatureWithLockTests extends LockingFixture
locks
docBuilder, featureInfo, featureTypes, reqEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata
Constructor and Description |
---|
GetFeatureWithLockTests() |
Modifier and Type | Method and Description |
---|---|
void |
buildGetFeatureWithLockRequest()
Builds a DOM Document representing a GetFeatureWithLock request entity.
|
void |
lockAllQueryResults_30Seconds()
[
Test ] Submits a request to lock all instances of a randomly
selected feature type for 30 seconds. |
void |
lockQueryResults_hits()
[
Test ] The only valid value for the resultType attribute in a
GetFeatureWithLock request is "results". |
void |
lockSomeQueryResults()
[
Test ] Submits a request to lock all instances of a randomly
selected feature type (Q1) for 60 seconds. |
void |
sutImplementsGetFeatureWithLock(org.testng.ITestContext testContext)
Checks that the GetFeatureWithLock operation is implemented by the SUT.
|
releaseAllLocks
addAttributesIfTestFailed, allProtocolsAndFeatureTypes, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, protocolAndAvailableFeatureTypes
public void sutImplementsGetFeatureWithLock(org.testng.ITestContext testContext)
public void buildGetFeatureWithLockRequest()
public void lockQueryResults_hits()
Test
] The only valid value for the resultType attribute in a
GetFeatureWithLock request is "results". Any other value ("hits") shall
produce an exception report with error code "InvalidParameterValue".public void lockAllQueryResults_30Seconds()
Test
] Submits a request to lock all instances of a randomly
selected feature type for 30 seconds. After this time has elapsed, an
attempt is made to reset the lock; this LockFeature request should fail
with a 'LockHasExpired' exception.public void lockSomeQueryResults()
Test
] Submits a request to lock all instances of a randomly
selected feature type (Q1) for 60 seconds. Another request is then
submitted to lock SOME of Q1 plus the members of result set Q2 (different
feature type). This request should succeed; the response shall only
contain those features that were successfully locked (members of Q2
results but not Q1 results that were previously locked).Copyright © 2013. All Rights Reserved.