Class DataFixture

java.lang.Object
org.opengis.cite.eogeojson10.DataFixture
Direct Known Subclasses:
AquisitionInformationConfClassTests, AquisitionParametersConfClassTests, CoreTests, DataIdentificationConfClassTests, EarthObservationConfClassTests, EOCollectionConfClassTests, GeometryConfClassTests, LinksConfClassTests, MetadataInformationConfClassTests, OfferingConfClassTests, ProductInformationConfClassTests, PropertiesConfClassTests

public class DataFixture extends Object
Includes various tests of capability 1.
  • Field Details

    • testSubject

      protected String testSubject
      testSubject
    • collectionTestSubject

      protected String collectionTestSubject
      collectionTestSubject
    • DEFAULT_BUFFER_SIZE

      protected final int DEFAULT_BUFFER_SIZE
      DEFAULT_BUFFER_SIZE = 8192
      See Also:
  • Constructor Details

    • DataFixture

      public DataFixture()
  • Method Details

    • obtainTestSubject

      @BeforeClass public void obtainTestSubject(org.testng.ITestContext testContext)
      Obtains the test subject from the ISuite context.
      Parameters:
      testContext - The test (group) context.
    • setTestSubject

      public void setTestSubject(String testSubject)
      Sets the test subject. This method is intended to facilitate unit testing.
      Parameters:
      testSubject - A Document node representing the test subject or metadata about it.
    • readJSONObjectFromFile

      public org.json.JSONObject readJSONObjectFromFile(File filePath) throws IOException

      readJSONObjectFromFile.

      Parameters:
      filePath - a File object
      Returns:
      a JSONObject object
      Throws:
      IOException - if any.
    • convertInputStreamToString

      public String convertInputStreamToString(InputStream is) throws IOException

      convertInputStreamToString.

      Parameters:
      is - a InputStream object
      Returns:
      a String object
      Throws:
      IOException - if any.