Package org.opengis.cite.gpkg12
Class SuitePreconditions
java.lang.Object
org.opengis.cite.gpkg12.SuitePreconditions
Checks that various preconditions are satisfied before the test suite is run. If any of
these (BeforeSuite) methods fail, all tests will be skipped.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Verifies that the referenced test subject exists and is a SQLite database file.
-
Constructor Details
-
SuitePreconditions
public SuitePreconditions()
-
-
Method Details
-
verifySQLiteMajorVersion
Verifies that the referenced test subject exists and is a SQLite database file. The first 100 bytes comprise the database file header. The SQLITE_VERSION_NUMBER starts at offset 96; it resolves to an integer with the value (X*1000000 + Y*1000 + Z) where X, Y, and Z are the same numbers used in SQLITE_VERSION. The major version number, X, is always 3 for SQLite3.- Throws:
IOException
- If an I/O error occurs while trying to read the data file.
-