Class SuitePreconditions

java.lang.Object
org.opengis.cite.gpkg12.SuitePreconditions

public class SuitePreconditions extends Object
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 Details

    • SuitePreconditions

      public SuitePreconditions()
  • Method Details

    • verifySQLiteMajorVersion

      @BeforeSuite public void verifySQLiteMajorVersion() throws IOException
      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.