Class AbstractBaseGetFixture

java.lang.Object
de.latlon.ets.wms13.core.dgiwg.testsuite.AbstractBaseGetFixture
Direct Known Subclasses:
AbstractBaseGetCapabilitiesFixture, BaseGetFeatureInfoFixture, BaseGetMapFixture

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
  • Field Details

    • NS_BINDINGS

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

      protected Document wmsCapabilities
    • wmsClient

      protected WmsClient wmsClient
    • docBuilder

      protected DocumentBuilder docBuilder
    • reqEntity

      protected WmsKvpRequest reqEntity
    • rspEntity

      protected Document rspEntity
    • layerInfo

      protected List<LayerInfo> layerInfo
  • Constructor Details

    • AbstractBaseGetFixture

      public AbstractBaseGetFixture()
  • Method Details

    • setWmsClient

      public void setWmsClient(WmsClient wmsClient)
    • 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/wms}WMS_Capabilities as the document element.
      Parameters:
      testContext - the test (set) context, never null
    • initParser

      @BeforeClass public void initParser()
      Initializes the (namespace-aware) DOM parser.
    • 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 result to add the attributes, never null
    • 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 result to add the attributes, never null