Class AbstractBaseGetFixture
java.lang.Object
org.opengeospatial.cite.wmts10.ets.testsuite.AbstractBaseGetFixture
- Direct Known Subclasses:
AbstractBaseGetCapabilitiesFixture,AbstractBaseGetFeatureInfoFixture,AbstractBaseGetTileFixture
A supporting base class that provides common configuration methods and data providers.
The configuration methods are invoked before any that may be defined in a subclass.
- Author:
- Lyn Goltz (original), Jim Beatty (modified/fixed May/Jun/Jul-2017 for WMS and/or WMTS)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DocumentBuilderprotected static final de.latlon.ets.core.util.NamespaceBindingsprotected WmtsKvpRequestprotected Documentprotected Documentprotected WmtsClient -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttributesOnTestFailure(org.testng.ITestResult result) Augments the test result with supplementary attributes in the event that a test method failed.voidaddAttributesOnTestSuccess(org.testng.ITestResult result) Augments the test result with supplementary attributes in the event that a test method succeeded.voidvoidinitBaseFixture(org.testng.ITestContext testContext) Sets up the base fixture.voidInitializes the (namespace-aware) DOM parser.voidsetWmtsClient(WmtsClient wmtsClient)
-
Field Details
-
NS_BINDINGS
protected static final de.latlon.ets.core.util.NamespaceBindings NS_BINDINGS -
wmtsCapabilities
-
wmtsClient
-
docBuilder
-
reqEntity
-
rspEntity
-
layerInfo
-
-
Constructor Details
-
AbstractBaseGetFixture
public AbstractBaseGetFixture()
-
-
Method Details
-
setWmtsClient
-
initBaseFixture
@BeforeClass(alwaysRun=true) public void initBaseFixture(org.testng.ITestContext testContext) Sets up the base fixture. The service metadata document is obtained from the ISuite context. The suite attributetestSubjectshould yield a DOM Document node having {http://www.opengis.net/wmts}WMTS_Capabilities as the document element.- Parameters:
testContext- the test (set) context, nevernull
-
initParser
@BeforeClass public void initParser()Initializes the (namespace-aware) DOM parser. -
buildGetCapabilitiesResponse
@BeforeMethod public void buildGetCapabilitiesResponse() -
addAttributesOnTestFailure
@AfterMethod public void addAttributesOnTestFailure(org.testng.ITestResult result) Augments the test result with supplementary attributes in the event that a test method failed. The "request" attribute contains a String representing the query component (GET method). The "response" attribute contains the content of the response entity.- Parameters:
result- the test result
-
addAttributesOnTestSuccess
@AfterMethod public void addAttributesOnTestSuccess(org.testng.ITestResult result) Augments the test result with supplementary attributes in the event that a test method succeeded. The "request" attribute contains a String representing the query component (GET method).- Parameters:
result- the test result
-