Class CommonFixture

java.lang.Object
org.opengis.cite.ogcapiedr10.CommonFixture
Direct Known Subclasses:
ApiDefinition, CollectionsResponse, CommonDataFixture, Conformance, EDRGeoJSONEncoding, GeoJSONEncoding, JSONEncoding, LandingPage, QueryCollections

public class CommonFixture extends Object
A supporting base class that sets up a common test fixture. These configuration methods are invoked before those defined in a subclass.
  • Field Details

    • requestLoggingFilter

      protected io.restassured.filter.log.RequestLoggingFilter requestLoggingFilter
    • responseLoggingFilter

      protected io.restassured.filter.log.ResponseLoggingFilter responseLoggingFilter
    • rootUri

      protected URI rootUri
    • apiDefUri

      protected URI apiDefUri
    • testingWktPOINT

      protected String testingWktPOINT
    • geoJSONTestingCollection

      protected String geoJSONTestingCollection
    • DEFAULT_BUFFER_SIZE

      protected final int DEFAULT_BUFFER_SIZE
      See Also:
  • Constructor Details

    • CommonFixture

      public CommonFixture()
  • Method Details

    • initCommonFixture

      @BeforeClass public void initCommonFixture(org.testng.ITestContext testContext)
      Initializes the common test fixture with a client component for interacting with HTTP endpoints.
      Parameters:
      testContext - The test context that contains all the information for a test run, including suite attributes.
    • clearMessages

      @BeforeMethod public void clearMessages()
    • getRequest

      public String getRequest()
    • getResponse

      public String getResponse()
    • init

      protected io.restassured.specification.RequestSpecification init()
    • constructDateTimeValue

      protected String constructDateTimeValue(String input) throws Exception
      Throws:
      Exception
    • convertInputStreamToString

      public String convertInputStreamToString(InputStream is) throws IOException
      Throws:
      IOException
    • getCollectionResponse

      protected io.restassured.response.Response getCollectionResponse(String collectionId)