public class MetadataTests extends CommonFixture
Sources
CommonFixture.GeoPackageVersiondatabaseConnection, dataSource, gpkgFile, ROOT_PKG_PATH| Constructor and Description |
|---|
MetadataTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
activeExtension(org.testng.ITestContext testContext)
Determines if the extension is active by looking for relevant tables and/or rows
|
void |
metadataExtensionTableValues()
GeoPackages with a row in the `gpkg_extensions` table with an
`extension_name` of "gpkg_metadata" SHALL comply with this extension.
|
void |
metadataReferenceScopeAgreement()
Every
gpkg_metadata_reference table row with a reference_scope column value of 'geopackage' SHALL have a table_name column value that is NULL. |
void |
metadataReferencesScopeValues()
Every
gpkg_metadata_reference table reference scope column value
SHALL be one of 'geopackage', 'table', 'column', 'row', 'row/col' in
lowercase. |
void |
metadataReferencesTableDefinition()
A GeoPackage that contains a
gpkg_metadata table SHALL contain a
gpkg_metadata_reference table per clause 2.4.3.1.1 Table Definition, Metadata
Reference Table Definition (Table Name: gpkg_metadata_reference) and
gpkg_metadata_reference Table Definition SQL. |
void |
metadataScopeValues()
Each
md_scope column value in a gpkg_metadata table or
updateable view SHALL be one of the name column values from Metadata Scopes. |
void |
metadataTableDefinition()
A GeoPackage MAY contain a table named gpkg_metadata.
|
void |
setUp()
Sets up variables used across methods
|
checkPrimaryKey, close, getAllowedVersions, getGeopackageVersion, getPrimaryKeyColumn, getTestName, initCommonFixture, isExtendedType, setTestName, validateClassEnabledpublic void setUp()
throws SQLException
SQLException - if there is a database errorpublic void activeExtension(org.testng.ITestContext testContext)
throws SQLException
testContext - the ITestContext to useSQLException - on any SQL error (which would indicate non-compliance)public void metadataTableDefinition()
throws SQLException
SQLException - If an SQL query causes an errorpublic void metadataScopeValues()
md_scope column value in a gpkg_metadata table or
updateable view SHALL be one of the name column values from Metadata Scopes.public void metadataReferencesTableDefinition()
gpkg_metadata table SHALL contain a
gpkg_metadata_reference table per clause 2.4.3.1.1 Table Definition, Metadata
Reference Table Definition (Table Name: gpkg_metadata_reference) and
gpkg_metadata_reference Table Definition SQL.public void metadataExtensionTableValues()
throws SQLException
SQLException - on any errorpublic void metadataReferencesScopeValues()
gpkg_metadata_reference table reference scope column value
SHALL be one of 'geopackage', 'table', 'column', 'row', 'row/col' in
lowercase.public void metadataReferenceScopeAgreement()
throws SQLException
gpkg_metadata_reference table row with a reference_scope column value of 'geopackage' SHALL have a table_name column value that is NULL. Every other gpkg_metadata_reference table row SHALL have a table_name
column value that references a value in the gpkg_contents
table_name column.SQLException - If an SQL query causes an errorCopyright © 2018 Open Geospatial Consortium. All rights reserved.