Class LockingFixture
java.lang.Object
org.opengis.cite.iso19142.BaseFixture
org.opengis.cite.iso19142.locking.LockingFixture
- Direct Known Subclasses:
GetFeatureWithLockTests
,LockFeatureTests
Provides configuration methods that facilitate the testing of locking behavior
specified for the "Locking WFS" conformance level.
-
Field Summary
Modifier and TypeFieldDescriptionprotected DataSampler
Acquires and saves sample feature data.List containing lock identifiersprotected String
Identifier for GetFeatureById stored queryFields inherited from class org.opengis.cite.iso19142.BaseFixture
docBuilder, ETS_PKG, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata, wfsVersion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initLockingFixture
(org.testng.ITestContext testContext) Obtains a DataSampler object from the test run context (the value of theSuiteAttribute.SAMPLER attribute
).void
Releases all locks by submitting empty Transaction requests that include the lockId and releaseAction (="ALL") attributes.Methods inherited from class org.opengis.cite.iso19142.BaseFixture
addAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, setWfsClient
-
Field Details
-
locks
List containing lock identifiers -
dataSampler
Acquires and saves sample feature data. -
storedQueryId
Identifier for GetFeatureById stored query
-
-
Constructor Details
-
LockingFixture
public LockingFixture()
-
-
Method Details
-
initLockingFixture
@BeforeClass public void initLockingFixture(org.testng.ITestContext testContext) Obtains a DataSampler object from the test run context (the value of theSuiteAttribute.SAMPLER attribute
).- Parameters:
testContext
- The test run context.
-
releaseAllLocks
@AfterMethod public void releaseAllLocks()Releases all locks by submitting empty Transaction requests that include the lockId and releaseAction (="ALL") attributes. An unsuccessful request is logged (as aLevel.WARNING
).
-