public class GetFeatureWithLockTests extends LockingFixture
Sources
dataSampler, locks, storedQueryIddocBuilder, ETS_PKG, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata, wfsVersion| Constructor and Description |
|---|
GetFeatureWithLockTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildGetFeatureWithLockRequest()
Builds a DOM Document representing a GetFeatureWithLock request entity.
|
void |
lockAllQueryResults_20Seconds()
[
Test] Submits a request to lock all instances of a randomly
selected feature type for 20 seconds. |
void |
lockQueryResults_hits()
[
Test] The only valid value for the resultType attribute in a
GetFeatureWithLock request is "results". |
void |
lockSomeFeatures()
[
Test] Verifies that a feature can be protected by only one lock
at a time (i.e. |
void |
sutImplementsGetFeatureWithLock(org.testng.ITestContext testContext)
Checks that the GetFeatureWithLock operation is implemented by the SUT.
|
initLockingFixture, releaseAllLocksaddAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, setWfsClientpublic void sutImplementsGetFeatureWithLock(org.testng.ITestContext testContext)
testContext - Supplies details about the test run.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_20Seconds()
Test] Submits a request to lock all instances of a randomly
selected feature type for 20 seconds. After this time has elapsed, an
attempt is made to reset the lock; this LockFeature request should fail
with a 'LockHasExpired' exception and HTTP status code 403 (Forbidden).
Sources
public void lockSomeFeatures()
Test] Verifies that a feature can be protected by only one lock
at a time (i.e. a mutual exclusion lock). Two
GetFeatureWithLock requests are submitted:
The last request should succeed. However, the response entity shall not contain the feature that was previously locked in Q1.
Copyright © 2020 Open Geospatial Consortium. All rights reserved.