Class AbstractBaseGetFixture

java.lang.Object
org.opengeospatial.cite.wmts10.ets.testsuite.AbstractBaseGetFixture
Direct Known Subclasses:
AbstractBaseGetCapabilitiesFixture, AbstractBaseGetFeatureInfoFixture, AbstractBaseGetTileFixture

public abstract class AbstractBaseGetFixture extends Object
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 Details

    • NS_BINDINGS

      protected static final de.latlon.ets.core.util.NamespaceBindings NS_BINDINGS
    • wmtsCapabilities

      protected Document wmtsCapabilities
    • wmtsClient

      protected WmtsClient wmtsClient
    • docBuilder

      protected DocumentBuilder docBuilder
    • reqEntity

      protected WmtsKvpRequest reqEntity
    • rspEntity

      protected Document rspEntity
    • layerInfo

      protected List<LayerInfo> layerInfo
  • Constructor Details

    • AbstractBaseGetFixture

      public AbstractBaseGetFixture()
  • Method Details

    • setWmtsClient

      public void setWmtsClient(WmtsClient wmtsClient)
    • 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 attribute testSubject should yield a DOM Document node having {http://www.opengis.net/wmts}WMTS_Capabilities as the document element.
      Parameters:
      testContext - the test (set) context, never null
    • 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