Package org.opengis.cite.gpkg10
Class CommonFixture
java.lang.Object
org.opengis.cite.gpkg10.CommonFixture
- Direct Known Subclasses:
DataContentsTests
,MetadataTests
,SpatialReferenceSystemsTests
,SQLiteContainerTests
,TileTests
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 Summary
Modifier and TypeFieldDescriptionprotected Connection
protected DataSource
A JDBC DataSource for accessing the SQLite database.protected File
A SQLite database file containing a GeoPackage.static final String
Root test suite package (absolute path). -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
close.void
initCommonFixture
(org.testng.ITestContext testContext) Initializes the common test fixture.
-
Field Details
-
ROOT_PKG_PATH
Root test suite package (absolute path).- See Also:
-
gpkgFile
A SQLite database file containing a GeoPackage. -
dataSource
A JDBC DataSource for accessing the SQLite database. -
databaseConnection
-
-
Constructor Details
-
CommonFixture
public CommonFixture()
-
-
Method Details
-
initCommonFixture
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
close.
- Throws:
SQLException
- if any.
-