Class RTEBase
java.lang.Object
org.opengis.cite.gpkg12.CommonFixture
org.opengis.cite.gpkg12.extensions.relatedtables.RTEBase
- Direct Known Subclasses:
AttributesTests
,FeaturesTests
,MediaTests
,RTETests
,SimpleAttributesTests
,TilesTests
-
Field Summary
Fields inherited from class org.opengis.cite.gpkg12.CommonFixture
databaseConnection, dataSource, geopackageVersion, gpkgFile, ROOT_PKG_PATH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
activeExtension
(org.testng.ITestContext testContext) Helper function to determine if the extension is active.protected void
testRelatedType
(String relationName, String requiredType) A helper function for RTE requirements classes to determine whether the related data is of the expected typeprotected void
testRequirementsClassActive
(String relationName, String className) a helper function for RTE requirements classesMethods inherited from class org.opengis.cite.gpkg12.CommonFixture
checkPrimaryKey, close, getGeopackageVersion, getPrimaryKeyColumn, getTestName, initCommonFixture, isExtendedType, setTestName, validateClassEnabled
-
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
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
-