java.lang.Object
org.opengis.cite.gpkg12.CommonFixture
org.opengis.cite.gpkg12.extensions.relatedtables.RTEBase
Direct Known Subclasses:
AttributesTests, FeaturesTests, MediaTests, RTETests, SimpleAttributesTests, TilesTests

public abstract class RTEBase extends CommonFixture
  • Constructor Details

    • RTEBase

      public RTEBase()
  • Method Details

    • activeExtension

      @BeforeClass protected void activeExtension(org.testng.ITestContext testContext) throws SQLException
      Helper function to determine if the extension is active. This is used for the main extension and each of its requirements classes.
      Parameters:
      testContext - a context object
      Throws:
      SQLException - On any SQL query error or test failure
    • testRequirementsClassActive

      protected void testRequirementsClassActive(String relationName, String className) throws SQLException
      a helper function for RTE requirements classes
      Parameters:
      relationName - a relation name like "media"
      className - a human-readable name for a requirements class like "Media"
      Throws:
      SQLException - On any SQL query error or test failure
    • testRelatedType

      protected void testRelatedType(String relationName, String requiredType) throws SQLException
      A helper function for RTE requirements classes to determine whether the related data is of the expected type
      Parameters:
      relationName - a relation name (e.g., "media")
      requiredType - the expected data type in gpkg_contents (e.g., "attributes")
      Throws:
      SQLException - On any SQL query error or test failure