See: Description
Class | Description |
---|---|
DerbyConstants |
Holds Derby related strings as constants.
|
DerbyResourceConfig |
Configurations to control the
EmbeddedDerbyResource . |
EmbeddedDerbyResource |
Provides an in-memory Derby resource.
|
Enum | Description |
---|---|
DbCreateFromRestroreMode |
When creating or restoring a database from a backup copy, Derby supports one of three modes.
|
ErrorLoggingMode |
Derby error logging
(derby.log) modes supported by the JUnit Derby helper. |
JdbcDerbySubSubProtocol |
Embedded Derby JDBC Sub-Protocols supported by this tool.
|
The library allows the user to configure an embedded Derby instance
(EmbeddedDerbyResource
) as an ExternalResource
which can be added to a test class using the Rule
or ClassRule
annotation,
with initialization scripts; and JUnit managing the initialization and de-initialization of the database instance.
Embedded instances can be accessed using standard JDBC connections created through the
DriverManager
, and convenience methods are provided to get the JDBC connection URL (see
EmbeddedDerbyResource.getJdbcUrl()
and
EmbeddedDerbyResource.createConnection()
.
The runtime instance can be configured using the DerbyResourceConfig
.
Specific packages provide additional functionality, org.deventropy.junithelper.derby.datasource
for
DataSource
related functionality. org.deventropy.junithelper.derby.util
has some hopefully
useful utility classes.
More details are in the Project Website.
Copyright © 2015-2016 Development Entropy (deventropy.org) Contributors