Class CommonFixture

java.lang.Object
org.opengis.cite.gpkg10.CommonFixture
Direct Known Subclasses:
DataContentsTests, MetadataTests, SpatialReferenceSystemsTests, SQLiteContainerTests, TileTests

public class CommonFixture extends Object
A supporting base class that sets up a common test fixture. These configuration methods are invoked before any that may be defined in a subclass.
  • Field Details

    • ROOT_PKG_PATH

      public static final String ROOT_PKG_PATH
      Root test suite package (absolute path).
      See Also:
    • gpkgFile

      protected File gpkgFile
      A SQLite database file containing a GeoPackage.
    • dataSource

      protected DataSource dataSource
      A JDBC DataSource for accessing the SQLite database.
    • databaseConnection

      protected Connection databaseConnection
  • Constructor Details

    • CommonFixture

      public CommonFixture()
  • Method Details

    • initCommonFixture

      @BeforeClass public void initCommonFixture(org.testng.ITestContext testContext) throws SQLException
      Initializes the common test fixture. The fixture includes the following components:
      • a File representing a GeoPackage;
      • a DataSource for accessing a SQLite database.
      Parameters:
      testContext - The test context that contains all the information for a test run, including suite attributes.
      Throws:
      SQLException - If a database access error occurs.
    • close

      @AfterClass public void close() throws SQLException

      close.

      Throws:
      SQLException - if any.