public class MetadataTests extends CommonFixture
Sources
databaseConnection, dataSource, gpkgFile, ROOT_PKG_PATH
Constructor and Description |
---|
MetadataTests() |
Modifier and Type | Method and Description |
---|---|
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
|
void |
validateMetadataLevelEnabled(org.testng.ITestContext testContext) |
close, initCommonFixture
public void setUp() throws SQLException
SQLException
- if there is a database errorpublic void validateMetadataLevelEnabled(org.testng.ITestContext testContext) throws IOException
IOException
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 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 © 2022 Open Geospatial Consortium. All rights reserved.