- DataSetFactory - Class in com.github.mjeanroy.dbunit.core.dataset
-
Factory to create instance of IDataSet
.
- DataSetLoaderException - Exception in com.github.mjeanroy.dbunit.exception
-
Exception thrown when DataSet cannot be loaded.
- DataSetLoaderException(Exception) - Constructor for exception com.github.mjeanroy.dbunit.exception.DataSetLoaderException
-
Wrap original exception.
- DbUnitConfig - Annotation Type in com.github.mjeanroy.dbunit.core.annotations
-
Annotation that can be used to customize DBUnit configuration
property when the DbUnit connection will be created.
- DbUnitConfigInterceptor - Interface in com.github.mjeanroy.dbunit.core.configuration
-
An interceptor that can be used to apply some custom DbUnit configuration on a DatabaseConfig
instance.
- DbUnitConfiguration - Annotation Type in com.github.mjeanroy.dbunit.core.annotations
-
Deprecated.
- DbUnitConnection - Annotation Type in com.github.mjeanroy.dbunit.core.annotations
-
Set the DBUnit connection configuration.
- DbUnitDataSet - Annotation Type in com.github.mjeanroy.dbunit.core.annotations
-
Data set annotation, used to specify which data set should be loaded for
the next test.
- DbUnitEmbeddedDatabaseRule - Class in com.github.mjeanroy.dbunit.integration.spring
-
This rule provide a fine integration between spring embedded database
and dbunit:
Ensure that embedded database is started and available before dbUnit load dataSet.
Shutdown database after test.
- DbUnitEmbeddedDatabaseRule() - Constructor for class com.github.mjeanroy.dbunit.integration.spring.DbUnitEmbeddedDatabaseRule
-
Create rule with default database.
- DbUnitEmbeddedDatabaseRule(EmbeddedDatabase) - Constructor for class com.github.mjeanroy.dbunit.integration.spring.DbUnitEmbeddedDatabaseRule
-
Create rule with given EmbeddedDatabase
.
- DbUnitException - Exception in com.github.mjeanroy.dbunit.exception
-
DbUnit exception.
- DbUnitException(Exception) - Constructor for exception com.github.mjeanroy.dbunit.exception.DbUnitException
-
- DbUnitException(String) - Constructor for exception com.github.mjeanroy.dbunit.exception.DbUnitException
-
Create exception.
- DbUnitInit - Annotation Type in com.github.mjeanroy.dbunit.core.annotations
-
DbUnit initialization: allow user to run SQL script before
loading DbUnit data set.
- DbUnitJunitRunner - Class in com.github.mjeanroy.dbunit.integration.junit
-
Implementation of JUnit Runner
to fill and clear
database between each tests.
- DbUnitJunitRunner(Class<?>) - Constructor for class com.github.mjeanroy.dbunit.integration.junit.DbUnitJunitRunner
-
Create runner.
- DbUnitLiquibase - Annotation Type in com.github.mjeanroy.dbunit.core.annotations
-
DbUnit liquibase integration: allow test to initialize database with
liquibase and load DbUnit data set next.
- DbUnitOperation - Enum in com.github.mjeanroy.dbunit.core.operation
-
Set of DatabaseOperation
supported out of the box.
- DbUnitReplacement - Annotation Type in com.github.mjeanroy.dbunit.core.annotations
-
DbUnit initialization: allow user to run SQL script before
loading DbUnit data set.
- DbUnitRule - Class in com.github.mjeanroy.dbunit.integration.junit
-
JUnit Rule to setup DbUnit database for each tests.
- DbUnitRule(JdbcConfiguration) - Constructor for class com.github.mjeanroy.dbunit.integration.junit.DbUnitRule
-
- DbUnitRule(JdbcConnectionFactory) - Constructor for class com.github.mjeanroy.dbunit.integration.junit.DbUnitRule
-
- DbUnitRunner - Class in com.github.mjeanroy.dbunit.core.runner
-
Generic class to run DbUnit before/after test method invocation.
- DbUnitRunner(Class<?>, JdbcConnectionFactory) - Constructor for class com.github.mjeanroy.dbunit.core.runner.DbUnitRunner
-
Create runner.
- DbUnitRunner(Class<?>, DataSource) - Constructor for class com.github.mjeanroy.dbunit.core.runner.DbUnitRunner
-
Create runner.
- DbUnitSetup - Annotation Type in com.github.mjeanroy.dbunit.core.annotations
-
Database operation to execute before test is executed.
- DbUnitTearDown - Annotation Type in com.github.mjeanroy.dbunit.core.annotations
-
Database operation to execute after test is executed.
- DbUnitTestExecutionListener - Class in com.github.mjeanroy.dbunit.integration.spring
-
Spring test execution listener running DbUnit data set before and after test methods:
Get
DataSource
bean from
ApplicationContext
.
Load data set, retrieved using
DbUnitDataSet
annotation.
Run setup operation before test method execution.
Run tear down operation after test method method execution..
- DbUnitTestExecutionListener() - Constructor for class com.github.mjeanroy.dbunit.integration.spring.DbUnitTestExecutionListener
-
- debug(String) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with DEBUG level.
- debug(String, Object) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with DEBUG level.
- debug(String, Object...) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with DEBUG level.
- debug(String, Object, Object) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with DEBUG level.
- DEFAULT_CHARSET - Static variable in class com.github.mjeanroy.dbunit.commons.io.Files
-
- DEFAULT_DELIMITER - Static variable in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParserConfiguration
-
Default SQL delimiter (;
).
- defaultConfiguration() - Static method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParserConfiguration
-
Get new builder instance.
- DELETE - com.github.mjeanroy.dbunit.core.operation.DbUnitOperation
-
- DELETE_ALL - com.github.mjeanroy.dbunit.core.operation.DbUnitOperation
-
- DirectoryDataSet - Class in com.github.mjeanroy.dbunit.core.dataset
-
Directory dataSet.
- DirectoryDataSetBuilder - Class in com.github.mjeanroy.dbunit.core.dataset
-
- DirectoryDataSetBuilder() - Constructor for class com.github.mjeanroy.dbunit.core.dataset.DirectoryDataSetBuilder
-
Create builder.
- DirectoryDataSetBuilder(Resource) - Constructor for class com.github.mjeanroy.dbunit.core.dataset.DirectoryDataSetBuilder
-
Create build with directory.
- doParse(Reader) - Method in class com.github.mjeanroy.dbunit.json.AbstractJsonParser
-
Parse given
Reader
:
Read JSON input.
Create dataset model from it.
- doParse(Reader) - Method in class com.github.mjeanroy.dbunit.json.GsonParser
-
- doParse(Reader) - Method in class com.github.mjeanroy.dbunit.json.Jackson1Parser
-
- doParse(Reader) - Method in class com.github.mjeanroy.dbunit.json.Jackson2Parser
-
- EmbeddedDatabaseRule - Class in com.github.mjeanroy.dbunit.integration.spring
-
Rule used to start/stop embedded database.
- EmbeddedDatabaseRule() - Constructor for class com.github.mjeanroy.dbunit.integration.spring.EmbeddedDatabaseRule
-
Create rule with default builder.
- EmbeddedDatabaseRule(EmbeddedDatabase) - Constructor for class com.github.mjeanroy.dbunit.integration.spring.EmbeddedDatabaseRule
-
Create rule.
- ensureRootSeparator(String) - Static method in class com.github.mjeanroy.dbunit.commons.io.Files
-
Ensure that a path
starts with folder separator and returns
updated path.
- ensureTrailingSeparator(String) - Static method in class com.github.mjeanroy.dbunit.commons.io.Files
-
Ensure that a path
ends with folder separator and returns
updated path.
- equals(Object) - Method in class com.github.mjeanroy.dbunit.core.jdbc.JdbcConfiguration
-
- equals(Object) - Method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParserConfiguration
-
- equals(Object, Object) - Static method in class com.github.mjeanroy.dbunit.commons.lang.Objects
-
Check that two values are equals:
If both are the same instances (or null
, return true
.
If one is null
, return false
.
Finally, if both are non null
, return the result of {code o1.equals(o2)}.
- error(String) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with ERROR level.
- error(String, Object) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with ERROR level.
- error(String, Object...) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with ERROR level.
- error(String, Object, Object) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with ERROR level.
- error(String, Throwable) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log an exception (throwable) at the ERROR level with an
accompanying message.
- Exceptions - Class in com.github.mjeanroy.dbunit.commons.lang
-
Static Exception Utilities.
- executeScript(Connection, Resource, SqlScriptParserConfiguration) - Static method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParser
-
Parse SQL script file and execute queries one by one (if a query failed, next queries are not executed).
- executeScript(Connection, InputStream, SqlScriptParserConfiguration) - Static method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParser
-
Parse SQL script and execute queries one by one (if a query failed, next queries are not executed).
- executeScript(Connection, String, SqlScriptParserConfiguration) - Static method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParser
-
Parse SQL script file and execute queries one by one (if a query failed, next queries are not executed).
- exists() - Method in interface com.github.mjeanroy.dbunit.core.resources.Resource
-
Check if this resource actually exists in physical form.
- extractExtension(String) - Static method in class com.github.mjeanroy.dbunit.commons.io.Files
-
Get file extension.
- extractFilename(String) - Static method in class com.github.mjeanroy.dbunit.commons.io.Files
-
Get the filename of a full path.
- extractPaths(String) - Static method in class com.github.mjeanroy.dbunit.commons.io.Files
-
Extract all parts of a given path.
- setCaseSensitiveTableNames(boolean) - Method in class com.github.mjeanroy.dbunit.core.dataset.DirectoryDataSetBuilder
-
Override case insensitive parameter.
- setCaseSensitiveTableNames(boolean) - Method in class com.github.mjeanroy.dbunit.core.dataset.JsonDataSetBuilder
-
Override default case sensitivity flag.
- setComparator(Comparator<Resource>) - Method in class com.github.mjeanroy.dbunit.core.dataset.DirectoryDataSetBuilder
-
Override default comparator.
- setDelimiter(char) - Method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParserConfiguration.Builder
-
Override default SQL delimiter.
- setDirectory(Resource) - Method in class com.github.mjeanroy.dbunit.core.dataset.DirectoryDataSetBuilder
-
Override directory path.
- setEndBlockComment(String) - Method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParserConfiguration.Builder
-
Override default pattern to detect end of an SQL block comment.
- setJsonFile(Resource) - Method in class com.github.mjeanroy.dbunit.core.dataset.JsonDataSetBuilder
-
Initialize JSON resource.
- setLineComment(String) - Method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParserConfiguration.Builder
-
Override default pattern to detect start of an SQL line comment.
- setParser(JsonParser) - Method in class com.github.mjeanroy.dbunit.core.dataset.JsonDataSetBuilder
-
Override default JSON parser.
- setStartBlockComment(String) - Method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParserConfiguration.Builder
-
Override default pattern to detect start of an SQL block comment.
- size() - Method in interface com.github.mjeanroy.dbunit.cache.Cache
-
Get the size of the cache.
- SqlParserException - Exception in com.github.mjeanroy.dbunit.exception
-
Exception thrown if an error occurred during SQL parsing.
- SqlParserException(Exception) - Constructor for exception com.github.mjeanroy.dbunit.exception.SqlParserException
-
Create exception with original cause.
- SqlParserException(String) - Constructor for exception com.github.mjeanroy.dbunit.exception.SqlParserException
-
Create exception with custom message.
- SqlScriptParser - Class in com.github.mjeanroy.dbunit.core.sql
-
- SqlScriptParserConfiguration - Class in com.github.mjeanroy.dbunit.core.sql
-
Configuration for SQL script parser.
- SqlScriptParserConfiguration.Builder - Class in com.github.mjeanroy.dbunit.core.sql
-
- startsWith(String, String, String, Object...) - Static method in class com.github.mjeanroy.dbunit.commons.lang.PreConditions
-
Ensure that given value
is not null
, empty or blank and starts with
given prefix
.
- Strings - Class in com.github.mjeanroy.dbunit.commons.lang
-
Static Strings Utilities.