Class SuitePreconditions

java.lang.Object
org.opengis.cite.cat30.basic.SuitePreconditions

public class SuitePreconditions extends Object
Checks that various preconditions are satisfied before the test suite is run. If any of these (BeforeSuite) methods fail, all tests are skipped.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Fetches records from the IUT using a simple GetRecords request (with no filter criteria) and saves the response entity to a temporary file.
    void
    Verifies that a service capabilities document was supplied as a test run argument and that the implementation it describes is available.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SuitePreconditions

      public SuitePreconditions()
  • Method Details

    • verifyTestSubject

      @BeforeSuite public void verifyTestSubject()
      Verifies that a service capabilities document was supplied as a test run argument and that the implementation it describes is available.
    • fetchSampleData

      @BeforeSuite public void fetchSampleData()
      Fetches records from the IUT using a simple GetRecords request (with no filter criteria) and saves the response entity to a temporary file. The resulting DatasetInfo object is stored as the value of the suite attribute dataset.

      The resulting csw:Record (full) representations are inspected in order to construct successful service requests (e.g. a GetRecordById request that produces a matching record, GetRecords request with a spatial filter).