Package | Description |
---|---|
org.deventropy.junithelper.derby |
JUnit Helper Derby is a utility to allow testing JDBC related code against Apache Derby embedded instances using
JUnit version 4.x.
|
org.deventropy.junithelper.derby.datasource |
Junit Helper Derby extensions to support working with
DataSource s over a
EmbeddedDerbyResource using the JUnit 4.x resource
EmbeddedDerbyDataSourceResource . |
Modifier and Type | Method and Description |
---|---|
DerbyResourceConfig |
DerbyResourceConfig.addPostInitScript(String postInitScript)
Adds a post init script to the config.
|
static DerbyResourceConfig |
DerbyResourceConfig.buildDefault()
Sets up a default config that can be used as is to start a database.
|
DerbyResourceConfig |
DerbyResourceConfig.createDatabaseFrom(File dbBackupDir)
Create a new database from a backup copy.
|
protected DerbyResourceConfig |
EmbeddedDerbyResource.getConfig()
Allows extending classes to use the config.
|
DerbyResourceConfig |
DerbyResourceConfig.recoverDatabaseFrom(File dbBackupDir,
File recoveryLogDevice)
Restore a database with roll forward recovery, optionally with archive logs.
|
DerbyResourceConfig |
DerbyResourceConfig.restoreDatabaseFrom(File dbBackupDir)
Restore a database from a backup location.
|
DerbyResourceConfig |
DerbyResourceConfig.useClasspathSubSubProtocol(String dbPath)
Use the
:classpath: Derby sub sub protocol. |
DerbyResourceConfig |
DerbyResourceConfig.useDatabaseInDirectory()
Use the
:directory: Derby sub sub protocol. |
DerbyResourceConfig |
DerbyResourceConfig.useDatabaseInDirectory(String directorpyDbPath)
Use the
:directory: Derby sub sub protocol, with the database in the specified
directorpyDbPath . |
DerbyResourceConfig |
DerbyResourceConfig.useDatabaseInDirectory(String directorpyDbPath,
boolean skipCreateAttribute)
Use the
:directory: Derby sub sub protocol, with the database in the specified
directorpyDbPath . |
DerbyResourceConfig |
DerbyResourceConfig.useDefaultErrorLogging()
Sets the
getErrorLoggingMode() value to ErrorLoggingMode.Default ; and clears other logging
properties. |
DerbyResourceConfig |
DerbyResourceConfig.useDevNullErrorLogging()
Sets the
getErrorLoggingMode() value to ErrorLoggingMode.Null ; and clears other logging
properties. |
DerbyResourceConfig |
DerbyResourceConfig.useInMemoryDatabase()
Will have the database start up as an in-memory database with a database name generated using
getDefaultDatabasePathName() . |
DerbyResourceConfig |
DerbyResourceConfig.useInMemoryDatabase(String databaseName)
Will have the database start up as an in-memory database with the specified database name.
|
DerbyResourceConfig |
DerbyResourceConfig.useJarSubSubProtocol(String jarFilePath,
String dbPath)
Use the
:jar: Derby sub sub protocol. |
Constructor and Description |
---|
EmbeddedDerbyResource(DerbyResourceConfig dbResourceConfig,
File derbySystemHomeDir)
Creates a new Derby resource.
|
EmbeddedDerbyResource(DerbyResourceConfig dbResourceConfig,
TemporaryFolder derbySystemHomeParentTmpFolder)
Creates a new Derby resource.
|
Constructor and Description |
---|
EmbeddedDerbyDataSourceResource(DerbyResourceConfig dbResourceConfig,
File derbySystemHomeDir)
Creates a new Derby resource.
|
EmbeddedDerbyDataSourceResource(DerbyResourceConfig dbResourceConfig,
TemporaryFolder derbySystemHomeParentTmpFolder)
Creates a new Derby resource.
|
Copyright © 2015-2016 Development Entropy (deventropy.org) Contributors