A B C D E F G H I J L M N O P Q R S T U V W Y
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractDatasetParser - Class in com.github.mjeanroy.dbunit.core.parsers
-
Abstract implementation of
DatasetParser
that createReader
from givenResource
and executeAbstractDatasetParser.doParse(Reader)
. - AbstractDatasetParser() - Constructor for class com.github.mjeanroy.dbunit.core.parsers.AbstractDatasetParser
- AbstractJdbcConnectionFactory - Class in com.github.mjeanroy.dbunit.core.jdbc
-
Abstract connection factory that can be used to automatically wrap exception.
- AbstractJdbcConnectionFactory() - Constructor for class com.github.mjeanroy.dbunit.core.jdbc.AbstractJdbcConnectionFactory
-
Create new factory.
- AbstractJsonParser - Class in com.github.mjeanroy.dbunit.json
-
Abstract implementation of
JsonParser
that createReader
from givenResource
and executeAbstractDatasetParser.doParse(Reader)
. - AbstractJsonParser() - Constructor for class com.github.mjeanroy.dbunit.json.AbstractJsonParser
- AbstractParserException - Exception in com.github.mjeanroy.dbunit.exception
-
Wrap external parsing exception.
- AbstractParserException(Exception) - Constructor for exception com.github.mjeanroy.dbunit.exception.AbstractParserException
-
Wrap
Exception
. - AbstractYamlParser - Class in com.github.mjeanroy.dbunit.yaml
-
Abstract implementation of
JsonParser
that createReader
from givenResource
and executeAbstractDatasetParser.doParse(Reader)
. - AbstractYamlParser() - Constructor for class com.github.mjeanroy.dbunit.yaml.AbstractYamlParser
- addReplacement(String) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement with
null
for givenkey
. - addReplacement(String, boolean) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
. - addReplacement(String, byte) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
. - addReplacement(String, char) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
. - addReplacement(String, double) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
. - addReplacement(String, float) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
. - addReplacement(String, int) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
. - addReplacement(String, long) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
. - addReplacement(String, short) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
. - addReplacement(String, String) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
. - addReplacement(String, BigDecimal) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
. - addReplacement(String, BigInteger) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
. - addReplacement(String, Date) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
. - after() - Method in class com.github.mjeanroy.dbunit.integration.spring.EmbeddedDatabaseRunner
-
Execute the after test handler.
- after() - Method in class com.github.mjeanroy.dbunit.integration.spring.junit4.EmbeddedDatabaseRule
- afterAll(ExtensionContext) - Method in class com.github.mjeanroy.dbunit.integration.jupiter.DbUnitExtension
- afterAll(ExtensionContext) - Method in class com.github.mjeanroy.dbunit.integration.spring.jupiter.DbUnitEmbeddedDatabaseExtension
- afterAll(ExtensionContext) - Method in class com.github.mjeanroy.dbunit.integration.spring.jupiter.EmbeddedDatabaseExtension
- afterEach(ExtensionContext) - Method in class com.github.mjeanroy.dbunit.integration.jupiter.DbUnitExtension
- afterEach(ExtensionContext) - Method in class com.github.mjeanroy.dbunit.integration.spring.jupiter.DbUnitEmbeddedDatabaseExtension
- afterEach(ExtensionContext) - Method in class com.github.mjeanroy.dbunit.integration.spring.jupiter.EmbeddedDatabaseExtension
- afterTest(Method) - Method in class com.github.mjeanroy.dbunit.core.runner.DbUnitRunner
-
Unload data set after test execution: Get new SQL connection. Remove DataSet and execute tear down operation. Close SQL connection.
- afterTestMethod(TestContext) - Method in class com.github.mjeanroy.dbunit.integration.spring.DbUnitTestExecutionListener
- allowEmptyFields() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitConfig
-
Enable or disable empty fields in dataset.
- Annotations - Class in com.github.mjeanroy.dbunit.commons.reflection
-
Static Annotation Utilities.
- append(String, char) - Method in class com.github.mjeanroy.dbunit.commons.lang.ToStringBuilder
-
Append new char field.
- append(String, Object) - Method in class com.github.mjeanroy.dbunit.commons.lang.ToStringBuilder
-
Append new object field.
- append(String, String) - Method in class com.github.mjeanroy.dbunit.commons.lang.ToStringBuilder
-
Append new string field.
- apply(Statement, Description) - Method in class com.github.mjeanroy.dbunit.integration.junit4.DbUnitRule
- apply(Statement, Description) - Method in class com.github.mjeanroy.dbunit.integration.spring.junit4.DbUnitEmbeddedDatabaseRule
- applyConfiguration(DatabaseConfig) - Method in interface com.github.mjeanroy.dbunit.core.configuration.DbUnitConfigInterceptor
-
Apply customization on the database configuration instance.
B
- batchedStatements() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitConfig
-
Enable or disable usage of JDBC batched statement by DbUnit, default is
false
. - batchSize() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitConfig
-
Integer object giving the size of batch updates.
- before() - Method in class com.github.mjeanroy.dbunit.integration.spring.EmbeddedDatabaseRunner
-
Execute the before test handler.
- before() - Method in class com.github.mjeanroy.dbunit.integration.spring.junit4.EmbeddedDatabaseRule
- beforeAll(ExtensionContext) - Method in class com.github.mjeanroy.dbunit.integration.jupiter.DbUnitExtension
- beforeAll(ExtensionContext) - Method in class com.github.mjeanroy.dbunit.integration.spring.jupiter.DbUnitEmbeddedDatabaseExtension
- beforeAll(ExtensionContext) - Method in class com.github.mjeanroy.dbunit.integration.spring.jupiter.EmbeddedDatabaseExtension
- beforeEach(ExtensionContext) - Method in class com.github.mjeanroy.dbunit.integration.jupiter.DbUnitExtension
- beforeEach(ExtensionContext) - Method in class com.github.mjeanroy.dbunit.integration.spring.jupiter.DbUnitEmbeddedDatabaseExtension
- beforeEach(ExtensionContext) - Method in class com.github.mjeanroy.dbunit.integration.spring.jupiter.EmbeddedDatabaseExtension
- beforeTest(Method) - Method in class com.github.mjeanroy.dbunit.core.runner.DbUnitRunner
-
Load data set before test execution: Get new SQL connection. Load DataSet and execute setup operation. Close SQL connection.
- beforeTestMethod(TestContext) - Method in class com.github.mjeanroy.dbunit.integration.spring.DbUnitTestExecutionListener
- build() - Method in class com.github.mjeanroy.dbunit.commons.lang.ToStringBuilder
-
Create the final string.
- build() - Method in class com.github.mjeanroy.dbunit.core.dataset.DirectoryDataSetBuilder
-
Build data set.
- build() - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Create replacements objects.
- build() - Method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParserConfiguration.Builder
-
Build new instance of
SqlScriptParserConfiguration
. - builder() - Static method in class com.github.mjeanroy.dbunit.core.replacement.Replacements
-
Get a new builder instance.
- builder() - Static method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParserConfiguration
-
Get new builder instance.
C
- Cache<K,V> - Interface in com.github.mjeanroy.dbunit.cache
-
Cache of values identified by a key.
- CacheFactory - Class in com.github.mjeanroy.dbunit.cache
-
Factory for
Cache
instances. - CacheLoader<K,V> - Interface in com.github.mjeanroy.dbunit.cache
-
Cache loader: the role of a loader is to compute the value to store in a cache.
- caseSensitiveTableNames() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitConfig
-
Enable or disable case sensitive table names.
- checkArgument(boolean, String, Object...) - Static method in class com.github.mjeanroy.dbunit.commons.lang.PreConditions
- ClassInstantiationException - Exception in com.github.mjeanroy.dbunit.exception
-
Exception thrown when a class cannot be instantiated because of: Missing empty public constructor. The empty constructor is not public. Etc.
- CLASSPATH - com.github.mjeanroy.dbunit.core.resources.ResourceLoader
-
Load file from classpath.
- ClassUtils - Class in com.github.mjeanroy.dbunit.commons.reflection
-
Static Class Utilities.
- CLEAN_INSERT - com.github.mjeanroy.dbunit.core.operation.DbUnitOperation
- clear() - Method in interface com.github.mjeanroy.dbunit.cache.Cache
-
Clear cache.
- com.github.mjeanroy.dbunit.cache - package com.github.mjeanroy.dbunit.cache
- com.github.mjeanroy.dbunit.commons.io - package com.github.mjeanroy.dbunit.commons.io
- com.github.mjeanroy.dbunit.commons.lang - package com.github.mjeanroy.dbunit.commons.lang
- com.github.mjeanroy.dbunit.commons.reflection - package com.github.mjeanroy.dbunit.commons.reflection
- com.github.mjeanroy.dbunit.core.annotations - package com.github.mjeanroy.dbunit.core.annotations
- com.github.mjeanroy.dbunit.core.configuration - package com.github.mjeanroy.dbunit.core.configuration
- com.github.mjeanroy.dbunit.core.dataset - package com.github.mjeanroy.dbunit.core.dataset
- com.github.mjeanroy.dbunit.core.jdbc - package com.github.mjeanroy.dbunit.core.jdbc
- com.github.mjeanroy.dbunit.core.operation - package com.github.mjeanroy.dbunit.core.operation
- com.github.mjeanroy.dbunit.core.parsers - package com.github.mjeanroy.dbunit.core.parsers
- com.github.mjeanroy.dbunit.core.replacement - package com.github.mjeanroy.dbunit.core.replacement
- com.github.mjeanroy.dbunit.core.resources - package com.github.mjeanroy.dbunit.core.resources
- com.github.mjeanroy.dbunit.core.runner - package com.github.mjeanroy.dbunit.core.runner
- com.github.mjeanroy.dbunit.core.sql - package com.github.mjeanroy.dbunit.core.sql
- com.github.mjeanroy.dbunit.exception - package com.github.mjeanroy.dbunit.exception
- com.github.mjeanroy.dbunit.integration.junit4 - package com.github.mjeanroy.dbunit.integration.junit4
- com.github.mjeanroy.dbunit.integration.jupiter - package com.github.mjeanroy.dbunit.integration.jupiter
- com.github.mjeanroy.dbunit.integration.liquibase - package com.github.mjeanroy.dbunit.integration.liquibase
- com.github.mjeanroy.dbunit.integration.spring - package com.github.mjeanroy.dbunit.integration.spring
- com.github.mjeanroy.dbunit.integration.spring.junit4 - package com.github.mjeanroy.dbunit.integration.spring.junit4
- com.github.mjeanroy.dbunit.integration.spring.jupiter - package com.github.mjeanroy.dbunit.integration.spring.jupiter
- com.github.mjeanroy.dbunit.json - package com.github.mjeanroy.dbunit.json
- com.github.mjeanroy.dbunit.loggers - package com.github.mjeanroy.dbunit.loggers
- com.github.mjeanroy.dbunit.yaml - package com.github.mjeanroy.dbunit.yaml
- continueOnError() - Method in annotation type com.github.mjeanroy.dbunit.integration.spring.EmbeddedDatabaseConfiguration
-
Specify that all failures which occur while executing SQL scripts should be logged but should not cause a failure, defaults to
false
. - create() - Method in class com.github.mjeanroy.dbunit.core.replacement.CurrentTimestampValueReplacementsProvider
- create() - Method in class com.github.mjeanroy.dbunit.core.replacement.CurrentTimeValueReplacementsProvider
- create() - Method in class com.github.mjeanroy.dbunit.core.replacement.NowValueReplacementsProvider
- create() - Method in class com.github.mjeanroy.dbunit.core.replacement.NullValueReplacementsProvider
- create() - Method in interface com.github.mjeanroy.dbunit.core.replacement.ReplacementsProvider
-
Create replacements values.
- create(Class<?>) - Static method in class com.github.mjeanroy.dbunit.commons.lang.ToStringBuilder
-
Create the builder with given class (the simple name will be used to start the
toString
value). - createConnection() - Method in class com.github.mjeanroy.dbunit.core.jdbc.AbstractJdbcConnectionFactory
-
Create SQL connection (thrown exception will be catch and wrap into
JdbcException
. - createConnection() - Method in class com.github.mjeanroy.dbunit.core.jdbc.JdbcDataSourceConnectionFactory
- createConnection() - Method in class com.github.mjeanroy.dbunit.core.jdbc.JdbcDefaultConnectionFactory
- createDataSet(String[]) - Static method in class com.github.mjeanroy.dbunit.core.dataset.DataSetFactory
-
Create data set from collection of file path.
- createDataSet(Collection<IDataSet>) - Static method in class com.github.mjeanroy.dbunit.core.dataset.DataSetFactory
-
Create data set from collection of file path.
- createDefault() - Static method in class com.github.mjeanroy.dbunit.json.JsonParserFactory
-
Create default parser.
- createDefault() - Static method in class com.github.mjeanroy.dbunit.yaml.YamlParserFactory
-
Create default parser.
- CurrentTimestampValueReplacementsProvider - Class in com.github.mjeanroy.dbunit.core.replacement
-
A
ReplacementsProvider
that will map following values to the current date:current_timestamp
CURRENT_TIMESTAMP
current_timestamp()
CURRENT_TIMESTAMP()
- CurrentTimestampValueReplacementsProvider() - Constructor for class com.github.mjeanroy.dbunit.core.replacement.CurrentTimestampValueReplacementsProvider
- CurrentTimeValueReplacementsProvider - Class in com.github.mjeanroy.dbunit.core.replacement
-
A
ReplacementsProvider
that will map following values to the current time (according to the system timezone):current_time
CURRENT_TIME
current_time()
CURRENT_TIME()
- CurrentTimeValueReplacementsProvider() - Constructor for class com.github.mjeanroy.dbunit.core.replacement.CurrentTimeValueReplacementsProvider
D
- databaseName() - Method in annotation type com.github.mjeanroy.dbunit.integration.spring.EmbeddedDatabaseConfiguration
-
Set the name of the embedded database.
- databaseType() - Method in annotation type com.github.mjeanroy.dbunit.integration.spring.EmbeddedDatabaseConfiguration
-
Set the type of embedded database.
- 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.
- DatasetParser - Interface in com.github.mjeanroy.dbunit.core.parsers
- datatypeFactory() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitConfig
-
Used to configure the DataType factory.
- datatypeWarning() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitConfig
-
Enable or disable the warning message displayed when DbUnit encounter an unsupported data type.
- DbUnitAllowEmptyFieldsInterceptor - Class in com.github.mjeanroy.dbunit.core.configuration
-
An interceptor that can enable/disable the
"allowEmptyFields"
feature of DbUnit. - DbUnitAllowEmptyFieldsInterceptor() - Constructor for class com.github.mjeanroy.dbunit.core.configuration.DbUnitAllowEmptyFieldsInterceptor
-
Create the interceptor, the feature is enabled by default.
- DbUnitAllowEmptyFieldsInterceptor(boolean) - Constructor for class com.github.mjeanroy.dbunit.core.configuration.DbUnitAllowEmptyFieldsInterceptor
-
Create the interceptor.
- DbUnitBatchedStatementsInterceptor - Class in com.github.mjeanroy.dbunit.core.configuration
-
An interceptor that can enable/disable the
"batchedStatements"
feature of DbUnit. - DbUnitBatchedStatementsInterceptor() - Constructor for class com.github.mjeanroy.dbunit.core.configuration.DbUnitBatchedStatementsInterceptor
-
Create the interceptor, the feature is enabled by default.
- DbUnitBatchedStatementsInterceptor(boolean) - Constructor for class com.github.mjeanroy.dbunit.core.configuration.DbUnitBatchedStatementsInterceptor
-
Create the interceptor.
- DbUnitBatchSizeInterceptor - Class in com.github.mjeanroy.dbunit.core.configuration
-
An interceptor that can set the
"batchSize"
property of DbUnit. - DbUnitBatchSizeInterceptor(int) - Constructor for class com.github.mjeanroy.dbunit.core.configuration.DbUnitBatchSizeInterceptor
-
Create the interceptor.
- DbUnitCaseSensitiveTableNamesInterceptor - Class in com.github.mjeanroy.dbunit.core.configuration
-
An interceptor that can enable/disable the
"caseSensitiveTableNames"
feature of DbUnit. - DbUnitCaseSensitiveTableNamesInterceptor() - Constructor for class com.github.mjeanroy.dbunit.core.configuration.DbUnitCaseSensitiveTableNamesInterceptor
-
Create the interceptor, the feature is enabled by default.
- DbUnitCaseSensitiveTableNamesInterceptor(boolean) - Constructor for class com.github.mjeanroy.dbunit.core.configuration.DbUnitCaseSensitiveTableNamesInterceptor
-
Create the interceptor.
- 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. - 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.
- DbUnitDatatypeFactoryInterceptor - Class in com.github.mjeanroy.dbunit.core.configuration
-
An interceptor that can specify the
"datatypeFactory"
property of DbUnit. - DbUnitDatatypeFactoryInterceptor(Class<? extends IDataTypeFactory>) - Constructor for class com.github.mjeanroy.dbunit.core.configuration.DbUnitDatatypeFactoryInterceptor
-
Create the interceptor.
- DbUnitDatatypeFactoryInterceptor(IDataTypeFactory) - Constructor for class com.github.mjeanroy.dbunit.core.configuration.DbUnitDatatypeFactoryInterceptor
-
Create the interceptor.
- DbUnitDatatypeWarningInterceptor - Class in com.github.mjeanroy.dbunit.core.configuration
-
An interceptor that can enable/disable the
"datatypeWarning"
feature of DbUnit. - DbUnitDatatypeWarningInterceptor() - Constructor for class com.github.mjeanroy.dbunit.core.configuration.DbUnitDatatypeWarningInterceptor
-
Create the interceptor, the feature is disabled by default.
- DbUnitDatatypeWarningInterceptor(boolean) - Constructor for class com.github.mjeanroy.dbunit.core.configuration.DbUnitDatatypeWarningInterceptor
-
Create the interceptor.
- DbUnitEmbeddedDatabaseExtension - Class in com.github.mjeanroy.dbunit.integration.spring.jupiter
-
A simple and easy-to-use integration between DbUnit and spring
EmbeddedDatabase
. - DbUnitEmbeddedDatabaseExtension() - Constructor for class com.github.mjeanroy.dbunit.integration.spring.jupiter.DbUnitEmbeddedDatabaseExtension
-
Create extension with default database or using
EmbeddedDatabaseConfiguration
settings. - DbUnitEmbeddedDatabaseExtension(EmbeddedDatabase) - Constructor for class com.github.mjeanroy.dbunit.integration.spring.jupiter.DbUnitEmbeddedDatabaseExtension
-
Create extension with given
EmbeddedDatabase
. - DbUnitEmbeddedDatabaseRule - Class in com.github.mjeanroy.dbunit.integration.spring.junit4
-
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.junit4.DbUnitEmbeddedDatabaseRule
-
Create rule, embedded database will be initialized with
EmbeddedDatabaseConfiguration
if defined on the test class, or using a default embedded database. - DbUnitEmbeddedDatabaseRule(EmbeddedDatabase) - Constructor for class com.github.mjeanroy.dbunit.integration.spring.junit4.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
-
Wrap
Exception
. - DbUnitException(String) - Constructor for exception com.github.mjeanroy.dbunit.exception.DbUnitException
-
Create exception.
- DbUnitExtension - Class in com.github.mjeanroy.dbunit.integration.jupiter
-
A simple JUnit Jupiter extension for DbUnit.
- DbUnitExtension() - Constructor for class com.github.mjeanroy.dbunit.integration.jupiter.DbUnitExtension
-
Create the extension.
- DbUnitExtension(JdbcConfiguration) - Constructor for class com.github.mjeanroy.dbunit.integration.jupiter.DbUnitExtension
-
Create rule using
JdbcConfiguration
instance. - DbUnitExtension(JdbcConnectionFactory) - Constructor for class com.github.mjeanroy.dbunit.integration.jupiter.DbUnitExtension
-
Create rule using
JdbcConnectionFactory
to create SQL Connection. - DbUnitExtension(DataSource) - Constructor for class com.github.mjeanroy.dbunit.integration.jupiter.DbUnitExtension
-
Create rule using
DataSource
to create SQL Connection. - DbUnitFetchSizeInterceptor - Class in com.github.mjeanroy.dbunit.core.configuration
-
An interceptor that can set the
"fetchSize"
property of DbUnit. - DbUnitFetchSizeInterceptor(int) - Constructor for class com.github.mjeanroy.dbunit.core.configuration.DbUnitFetchSizeInterceptor
-
Create the interceptor.
- DbUnitInit - Annotation Type in com.github.mjeanroy.dbunit.core.annotations
-
DbUnit initialization: allow user to run SQL scripts before loading DbUnit data set.
- DbUnitJunitRunner - Class in com.github.mjeanroy.dbunit.integration.junit4
-
Implementation of JUnit
Runner
to fill and clear database between each tests. - DbUnitJunitRunner(Class<?>) - Constructor for class com.github.mjeanroy.dbunit.integration.junit4.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.
- DbUnitMetadataHandlerInterceptor - Class in com.github.mjeanroy.dbunit.core.configuration
-
An interceptor that can set the
"metadataHandler"
property of DbUnit. - DbUnitMetadataHandlerInterceptor(Class<? extends IMetadataHandler>) - Constructor for class com.github.mjeanroy.dbunit.core.configuration.DbUnitMetadataHandlerInterceptor
-
Create the interceptor.
- DbUnitMetadataHandlerInterceptor(IMetadataHandler) - Constructor for class com.github.mjeanroy.dbunit.core.configuration.DbUnitMetadataHandlerInterceptor
-
Create the interceptor.
- DbUnitOperation - Enum in com.github.mjeanroy.dbunit.core.operation
-
Set of
DatabaseOperation
supported out of the box. - DbUnitQualifiedTableNamesInterceptor - Class in com.github.mjeanroy.dbunit.core.configuration
-
An interceptor that can enable/disable the
"qualifiedTableNames"
feature of DbUnit. - DbUnitQualifiedTableNamesInterceptor() - Constructor for class com.github.mjeanroy.dbunit.core.configuration.DbUnitQualifiedTableNamesInterceptor
-
Create the interceptor, the feature is enabled by default.
- DbUnitQualifiedTableNamesInterceptor(boolean) - Constructor for class com.github.mjeanroy.dbunit.core.configuration.DbUnitQualifiedTableNamesInterceptor
-
Create the interceptor.
- DbUnitReplacements - Annotation Type in com.github.mjeanroy.dbunit.core.annotations
-
Annotation that define the list of
Replacements
to use during test suite. - DbUnitRule - Class in com.github.mjeanroy.dbunit.integration.junit4
-
JUnit Rule to setup DbUnit database for each tests.
- DbUnitRule() - Constructor for class com.github.mjeanroy.dbunit.integration.junit4.DbUnitRule
-
Create rule, extract
JdbcConnectionFactory
from test class annotations. - DbUnitRule(JdbcConfiguration) - Constructor for class com.github.mjeanroy.dbunit.integration.junit4.DbUnitRule
-
Create rule using
JdbcConfiguration
instance. - DbUnitRule(JdbcConnectionFactory) - Constructor for class com.github.mjeanroy.dbunit.integration.junit4.DbUnitRule
-
Create rule using
JdbcConnectionFactory
to create SQL Connection. - DbUnitRule(DataSource) - Constructor for class com.github.mjeanroy.dbunit.integration.junit4.DbUnitRule
-
Create rule using
dataSource
to get databaseConnection
. - DbUnitRunner - Class in com.github.mjeanroy.dbunit.core.runner
-
Generic class to run DbUnit before/after test method invocation.
- DbUnitRunner(Class<?>) - Constructor for class com.github.mjeanroy.dbunit.core.runner.DbUnitRunner
-
Create runner and extract the JDBC Connection factory from the
testClass
that should be annotated withDbUnitConnection
. - 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.
- DbUnitSpring - Annotation Type in com.github.mjeanroy.dbunit.integration.spring
-
A meta-annotation to automatically integrate Spring with DbUnit.
- DbUnitTearDown - Annotation Type in com.github.mjeanroy.dbunit.core.annotations
-
Database operation to execute after test is executed.
- DbUnitTest - Annotation Type in com.github.mjeanroy.dbunit.core.annotations
- 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 fromApplicationContext
. Load data set, retrieved usingDbUnitDataSet
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
-
The default
Charset
name. - 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.
- defaultScripts() - Method in annotation type com.github.mjeanroy.dbunit.integration.spring.EmbeddedDatabaseConfiguration
-
Add default SQL scripts to execute to populate the database.
- DELETE - com.github.mjeanroy.dbunit.core.operation.DbUnitOperation
- DELETE_ALL - com.github.mjeanroy.dbunit.core.operation.DbUnitOperation
- delimiter() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitInit
-
Delimiter for these set of SQL scripts.
- DirectoryDataSet - Class in com.github.mjeanroy.dbunit.core.dataset
-
Directory dataSet.
- DirectoryDataSetBuilder - Class in com.github.mjeanroy.dbunit.core.dataset
-
Builder for
DirectoryDataSet
instances. - 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.core.parsers.AbstractDatasetParser
-
Parse given
Reader
: Read input. Create dataset model from it. - doParse(Reader) - Method in class com.github.mjeanroy.dbunit.yaml.JacksonYamlParser
- doParse(Reader) - Method in class com.github.mjeanroy.dbunit.yaml.SnakeYamlParser
E
- EmbeddedDatabaseConfiguration - Annotation Type in com.github.mjeanroy.dbunit.integration.spring
- EmbeddedDatabaseExtension - Class in com.github.mjeanroy.dbunit.integration.spring.jupiter
-
A JUnit Jupiter extension that can be used to start/stop an embedded database.
- EmbeddedDatabaseExtension() - Constructor for class com.github.mjeanroy.dbunit.integration.spring.jupiter.EmbeddedDatabaseExtension
-
Create the extension, a default
EmbeddedDatabase
will be used. - EmbeddedDatabaseExtension(EmbeddedDatabase) - Constructor for class com.github.mjeanroy.dbunit.integration.spring.jupiter.EmbeddedDatabaseExtension
-
Create the extension, the given
EmbeddedDatabase
will be used. - EmbeddedDatabaseRule - Class in com.github.mjeanroy.dbunit.integration.spring.junit4
-
A JUnit 4
Rule
that can be used to start/stop embedded database. - EmbeddedDatabaseRule() - Constructor for class com.github.mjeanroy.dbunit.integration.spring.junit4.EmbeddedDatabaseRule
-
Create rule with default builder.
- EmbeddedDatabaseRule(Class<?>) - Constructor for class com.github.mjeanroy.dbunit.integration.spring.junit4.EmbeddedDatabaseRule
-
Create rule and lookup for
EmbeddedDatabaseConfiguration
in thetestClass
to initialize the embedded database. - EmbeddedDatabaseRule(EmbeddedDatabase) - Constructor for class com.github.mjeanroy.dbunit.integration.spring.junit4.EmbeddedDatabaseRule
-
Create rule.
- EmbeddedDatabaseRunner - Class in com.github.mjeanroy.dbunit.integration.spring
-
A standalone runner that can be used to start/stop embedded database.
- EmbeddedDatabaseRunner() - Constructor for class com.github.mjeanroy.dbunit.integration.spring.EmbeddedDatabaseRunner
-
Create rule with default builder.
- EmbeddedDatabaseRunner(Class<?>) - Constructor for class com.github.mjeanroy.dbunit.integration.spring.EmbeddedDatabaseRunner
-
Create runner.
- EmbeddedDatabaseRunner(EmbeddedDatabase) - Constructor for class com.github.mjeanroy.dbunit.integration.spring.EmbeddedDatabaseRunner
-
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.jdbc.JdbcDataSourceConnectionFactory
- equals(Object) - Method in class com.github.mjeanroy.dbunit.core.jdbc.JdbcDefaultConnectionFactory
- equals(Object) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements
- equals(Object) - Method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParserConfiguration
- 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.
- executeQueries(Connection, List<String>) - Static method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParser
- executeScript(Connection, Resource, SqlScriptParserConfiguration) - Static method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParser
-
Parse SQL scripts 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 scripts 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 scripts 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.
F
- fetchSize() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitConfig
-
Integer object giving the statement fetch size for loading data into a result set table.
- FILE_SYSTEM - com.github.mjeanroy.dbunit.core.resources.ResourceLoader
-
Load file from file system.
- Files - Class in com.github.mjeanroy.dbunit.commons.io
-
Static Files Utilities.
- find(String) - Static method in enum com.github.mjeanroy.dbunit.core.resources.ResourceLoader
-
Find loader according to given file pattern.
- findAnnotation(Class<?>, Class<T>) - Static method in class com.github.mjeanroy.dbunit.commons.reflection.Annotations
-
Find expected annotation on class, or a class in the hierarchy.
- findAnnotation(Class<?>, Method, Class<T>) - Static method in class com.github.mjeanroy.dbunit.commons.reflection.Annotations
-
Find expected annotation on: Method if annotation is defined. Class if annotation is defined.
- findAnnotation(Method, Class<T>) - Static method in class com.github.mjeanroy.dbunit.commons.reflection.Annotations
-
Find expected annotation on method, if annotation is defined.
- findAnnotations(Class<?>, Class<T>) - Static method in class com.github.mjeanroy.dbunit.commons.reflection.Annotations
-
Find expected annotation on class, or a class in the hierarchy.
- findAnnotations(Method, Class<T>) - Static method in class com.github.mjeanroy.dbunit.commons.reflection.Annotations
-
Find expected annotation on method.
- firstNonNull(T, T) - Static method in class com.github.mjeanroy.dbunit.commons.lang.Objects
-
Get first non
null
value: Ifo1
is notnull
, it is returned. Otherwise, returno2
.
G
- generateUniqueName() - Method in annotation type com.github.mjeanroy.dbunit.integration.spring.EmbeddedDatabaseConfiguration
-
Specify whether a unique identifier should be generated and used as the database name.
- getConnection() - Method in class com.github.mjeanroy.dbunit.core.jdbc.AbstractJdbcConnectionFactory
- getConnection() - Method in interface com.github.mjeanroy.dbunit.core.jdbc.JdbcConnectionFactory
-
Create new instance of
Connection
. - getConnection() - Method in class com.github.mjeanroy.dbunit.core.runner.DbUnitRunner
-
Get JDBC Connection to the target database.
- getConnection() - Method in class com.github.mjeanroy.dbunit.integration.spring.junit4.DbUnitEmbeddedDatabaseRule
-
Return new database connection, may return
null
if the database has not been initialized yet. - getDb() - Method in class com.github.mjeanroy.dbunit.integration.spring.EmbeddedDatabaseRunner
-
Gets currently created database instance.
- getDb() - Method in class com.github.mjeanroy.dbunit.integration.spring.junit4.DbUnitEmbeddedDatabaseRule
-
Get embedded database, may return
null
if the database has not been initialized yet. - getDb() - Method in class com.github.mjeanroy.dbunit.integration.spring.junit4.EmbeddedDatabaseRule
-
Gets currently created database instance.
- getDelimiter() - Method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParserConfiguration
- getEndBlockComment() - Method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParserConfiguration
- getFactory() - Method in class com.github.mjeanroy.dbunit.core.runner.DbUnitRunner
- getFilename() - Method in interface com.github.mjeanroy.dbunit.core.resources.Resource
-
Returns the filename of the resource.
- getKlass() - Method in exception com.github.mjeanroy.dbunit.exception.ClassInstantiationException
-
Class that cannot be instantiated.
- getLineComment() - Method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParserConfiguration
- getLogger(Class<?>) - Method in interface com.github.mjeanroy.dbunit.loggers.LoggerProvider
-
Create the logger.
- getLogger(Class<?>) - Static method in class com.github.mjeanroy.dbunit.loggers.Loggers
-
Create logger.
- getOperation() - Method in enum com.github.mjeanroy.dbunit.core.operation.DbUnitOperation
-
Get DBUnit
DatabaseOperation
to execute. - getPassword() - Method in class com.github.mjeanroy.dbunit.core.jdbc.JdbcConfiguration
- getPath() - Method in interface com.github.mjeanroy.dbunit.core.resources.Resource
-
Get full path of resource.
- getPath() - Method in exception com.github.mjeanroy.dbunit.exception.ResourceException
-
The resource path causing exception.
- getReplacements() - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements
-
Get the list of all replacement objects.
- getResource() - Method in class com.github.mjeanroy.dbunit.core.dataset.DirectoryDataSet
- getStartBlockComment() - Method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParserConfiguration
- getTable(String) - Method in class com.github.mjeanroy.dbunit.core.dataset.DirectoryDataSet
- getTableMetaData(String) - Method in class com.github.mjeanroy.dbunit.core.dataset.DirectoryDataSet
- getTableNames() - Method in class com.github.mjeanroy.dbunit.core.dataset.DirectoryDataSet
- getTables() - Method in class com.github.mjeanroy.dbunit.core.dataset.DirectoryDataSet
- getTestRules(Object) - Method in class com.github.mjeanroy.dbunit.integration.junit4.DbUnitJunitRunner
- getUrl() - Method in class com.github.mjeanroy.dbunit.core.jdbc.JdbcConfiguration
-
Gets
JdbcConfiguration.url
. - getUser() - Method in class com.github.mjeanroy.dbunit.core.jdbc.JdbcConfiguration
-
Gets
JdbcConfiguration.user
.
H
- hashCode() - Method in class com.github.mjeanroy.dbunit.core.jdbc.JdbcConfiguration
- hashCode() - Method in class com.github.mjeanroy.dbunit.core.jdbc.JdbcDataSourceConnectionFactory
- hashCode() - Method in class com.github.mjeanroy.dbunit.core.jdbc.JdbcDefaultConnectionFactory
- hashCode() - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements
- hashCode() - Method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParserConfiguration
I
- ignoreFailedDrops() - Method in annotation type com.github.mjeanroy.dbunit.integration.spring.EmbeddedDatabaseConfiguration
-
Specify that a failed SQL
DROP
statement within an executed scripts can be ignored. - info(String) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with INFO level.
- info(String, Object) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with INFO level.
- info(String, Object...) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with INFO level.
- info(String, Object, Object) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with INFO level.
- inherit() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitDataSet
-
A flag indicating if given annotation should be merged with "parent" annotations.
- inherit() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitReplacements
-
A flag indicating if given annotation should be merged with "parent" annotations.
- INSERT - com.github.mjeanroy.dbunit.core.operation.DbUnitOperation
- instantiate(Class<T>) - Static method in class com.github.mjeanroy.dbunit.commons.reflection.ClassUtils
-
Create new instance of given class using default empty constructor.
- instantiationException(Class<?>, Exception) - Static method in exception com.github.mjeanroy.dbunit.exception.ClassInstantiationException
-
Create exception with given original cause.
- invalidJarException(String) - Static method in exception com.github.mjeanroy.dbunit.exception.ResourceNotValidException
- Io - Class in com.github.mjeanroy.dbunit.commons.io
-
Static IO Utilities.
- isBlank(String) - Static method in class com.github.mjeanroy.dbunit.commons.lang.Strings
-
Check if string is blank (i.e not
null
, empty or contains only whitespace characters). - isCaseSensitiveTableNames() - Method in class com.github.mjeanroy.dbunit.core.dataset.DirectoryDataSet
- isDirectory() - Method in interface com.github.mjeanroy.dbunit.core.resources.Resource
-
Check if this resource is a directory.
- isEmpty(String) - Static method in class com.github.mjeanroy.dbunit.commons.lang.Strings
-
Check if string is empty (i.e
null
or an empty string). - isNotEmpty(String) - Static method in class com.github.mjeanroy.dbunit.commons.lang.Strings
-
Check if string is not empty (i.e not
null
and contains characters). - isPresent(String) - Static method in class com.github.mjeanroy.dbunit.commons.reflection.ClassUtils
-
Check if a given class is available on classpath.
- isRootPath(String) - Static method in class com.github.mjeanroy.dbunit.commons.io.Files
-
Check if a
path
is exactly the root path. - iterator() - Method in class com.github.mjeanroy.dbunit.core.dataset.DirectoryDataSet
J
- JacksonYamlParser - Class in com.github.mjeanroy.dbunit.yaml
-
YAML Parser using Jackson (V2)
ObjectMapper
as internal implementation. - JdbcConfiguration - Class in com.github.mjeanroy.dbunit.core.jdbc
-
JDBC Configuration, defined by: URL Connection. User. Password.
- JdbcConnectionFactory - Interface in com.github.mjeanroy.dbunit.core.jdbc
-
Factory that should create instance of
Connection
. - JdbcDataSourceConnectionFactory - Class in com.github.mjeanroy.dbunit.core.jdbc
- JdbcDataSourceConnectionFactory(DataSource) - Constructor for class com.github.mjeanroy.dbunit.core.jdbc.JdbcDataSourceConnectionFactory
-
Create new factory.
- JdbcDefaultConnectionFactory - Class in com.github.mjeanroy.dbunit.core.jdbc
- JdbcDefaultConnectionFactory(JdbcConfiguration) - Constructor for class com.github.mjeanroy.dbunit.core.jdbc.JdbcDefaultConnectionFactory
-
Create new factory.
- JdbcException - Exception in com.github.mjeanroy.dbunit.exception
-
Wrap external SQL exception.
- JdbcException(Exception) - Constructor for exception com.github.mjeanroy.dbunit.exception.JdbcException
-
Wrap exception.
- JdbcException(String) - Constructor for exception com.github.mjeanroy.dbunit.exception.JdbcException
-
Wrap
SQLException
. - JdbcException(String, ClassNotFoundException) - Constructor for exception com.github.mjeanroy.dbunit.exception.JdbcException
-
Wrap
ClassNotFoundException
. - JsonDataSet - Class in com.github.mjeanroy.dbunit.core.dataset
-
Implementation of
IDataSet
with JSON file as input. - JsonDataSetBuilder - Class in com.github.mjeanroy.dbunit.core.dataset
-
Builder for
JsonDataSet
instances. - JsonDataSetBuilder() - Constructor for class com.github.mjeanroy.dbunit.core.dataset.JsonDataSetBuilder
-
Create builder.
- JsonDataSetBuilder(Resource) - Constructor for class com.github.mjeanroy.dbunit.core.dataset.JsonDataSetBuilder
-
Create builder with JSON resource.
- JsonException - Exception in com.github.mjeanroy.dbunit.exception
-
Wrap external JSON parsing exception.
- JsonException(Exception) - Constructor for exception com.github.mjeanroy.dbunit.exception.JsonException
-
Wrap
Exception
. - JsonParser - Interface in com.github.mjeanroy.dbunit.json
-
Parse JSON file and return DBUnit dataSet as
Map
. - JsonParserFactory - Class in com.github.mjeanroy.dbunit.json
-
The goal of this factory is to create default instances of
JsonParser
.
L
- launderThrowable(Throwable) - Static method in class com.github.mjeanroy.dbunit.commons.lang.Exceptions
-
Coerce an unchecked Throwable to a
RuntimeException
If the Throwable is anError
, throw it; if it is aRuntimeException
return it, otherwise throwIllegalStateException
. - LiquibaseUpdater - Class in com.github.mjeanroy.dbunit.integration.liquibase
-
Run liquibase change sets against SQL connection.
- LiquibaseUpdater(String, JdbcConnectionFactory) - Constructor for class com.github.mjeanroy.dbunit.integration.liquibase.LiquibaseUpdater
-
Create updater.
- listResources() - Method in interface com.github.mjeanroy.dbunit.core.resources.Resource
-
Get all sub-resources: if the resource is not a directory, then this method should returns an empty list.
- load(String) - Method in enum com.github.mjeanroy.dbunit.core.resources.ResourceLoader
-
Load given file path.
- load(K) - Method in interface com.github.mjeanroy.dbunit.cache.Cache
-
Get entry in cache.
- load(K) - Method in interface com.github.mjeanroy.dbunit.cache.CacheLoader
-
Compute value to store in a cache.
- Logger - Interface in com.github.mjeanroy.dbunit.loggers
-
Logger contract.
- LoggerProvider - Interface in com.github.mjeanroy.dbunit.loggers
- Loggers - Class in com.github.mjeanroy.dbunit.loggers
-
Logger factory.
M
- mergeDataSet(IDataSet, IDataSet, IDataSet...) - Static method in class com.github.mjeanroy.dbunit.core.dataset.DataSetFactory
-
Create data set from collection of file path.
- metadataHandler() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitConfig
-
Used to configure the handler used to control database metadata related methods.
- missingDefaultConstructor(Class<?>) - Static method in exception com.github.mjeanroy.dbunit.exception.ClassInstantiationException
-
Create exception with a message saying that the empty public constructor is missing on given class.
N
- newCache(CacheLoader<K, V>) - Static method in class com.github.mjeanroy.dbunit.cache.CacheFactory
-
Create new cache.
- newJdbcConfiguration(String, String, String) - Static method in class com.github.mjeanroy.dbunit.core.jdbc.JdbcConfiguration
-
Create JDBC Configuration object.
- NONE - com.github.mjeanroy.dbunit.core.operation.DbUnitOperation
- notBlank(char, String, Object...) - Static method in class com.github.mjeanroy.dbunit.commons.lang.PreConditions
-
Ensure that given
value
is not blank. - notBlank(String, String, Object...) - Static method in class com.github.mjeanroy.dbunit.commons.lang.PreConditions
-
Ensure that given
value
is notnull
, empty or blank. - notNull(T, String, Object...) - Static method in class com.github.mjeanroy.dbunit.commons.lang.PreConditions
-
Ensure that given
value
is notnull
. - NowValueReplacementsProvider - Class in com.github.mjeanroy.dbunit.core.replacement
-
A
ReplacementsProvider
that will map following valuesto the current date (i.enew Date()
):NOW()
now()
- NowValueReplacementsProvider() - Constructor for class com.github.mjeanroy.dbunit.core.replacement.NowValueReplacementsProvider
- NullValueReplacementsProvider - Class in com.github.mjeanroy.dbunit.core.replacement
- NullValueReplacementsProvider() - Constructor for class com.github.mjeanroy.dbunit.core.replacement.NullValueReplacementsProvider
O
- Objects - Class in com.github.mjeanroy.dbunit.commons.lang
-
Static Objects Utilities.
- openStream() - Method in interface com.github.mjeanroy.dbunit.core.resources.Resource
-
Open an
InputStream
.
P
- parse(Resource) - Method in class com.github.mjeanroy.dbunit.core.parsers.AbstractDatasetParser
- parse(Resource) - Method in interface com.github.mjeanroy.dbunit.core.parsers.DatasetParser
-
Read File and return representation.
- parseScript(Resource, SqlScriptParserConfiguration) - Static method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParser
-
Parse SQL scripts file and return list of SQL query.
- parseScript(InputStream, SqlScriptParserConfiguration) - Static method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParser
-
Parse SQL scripts and return list of SQL query.
- parseScript(String, SqlScriptParserConfiguration) - Static method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParser
-
Parse SQL scripts and return list of SQL query.
- password() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitConnection
-
Get JDBC password.
- PreConditions - Class in com.github.mjeanroy.dbunit.commons.lang
-
Static PreConditions Utilities.
- prepareTestInstance(TestContext) - Method in class com.github.mjeanroy.dbunit.integration.spring.DbUnitTestExecutionListener
- providers() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitReplacements
-
The list of providers to use.
- put(String) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement with
null
for givenkey
(alias forReplacements.Builder.addReplacement(String)
). - put(String, boolean) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
(alias forReplacements.Builder.addReplacement(String, boolean)
). - put(String, byte) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
(alias forReplacements.Builder.addReplacement(String, byte)
). - put(String, char) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
(alias forReplacements.Builder.addReplacement(String, char)
). - put(String, double) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
(alias forReplacements.Builder.addReplacement(String, double)
). - put(String, float) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
(alias forReplacements.Builder.addReplacement(String, float)
). - put(String, int) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
(alias forReplacements.Builder.addReplacement(String, int)
). - put(String, long) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
(alias forReplacements.Builder.addReplacement(String, long)
). - put(String, short) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
(alias forReplacements.Builder.addReplacement(String, short)
). - put(String, String) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
(alias forReplacements.Builder.addReplacement(String, String)
). - put(String, BigDecimal) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
(alias forReplacements.Builder.addReplacement(String, BigDecimal)
). - put(String, BigInteger) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
(alias forReplacements.Builder.addReplacement(String, BigInteger)
). - put(String, Date) - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements.Builder
-
Add new replacement
value
for givenkey
(alias forReplacements.Builder.addReplacement(String, Date)
).
Q
- qualifiedTableNames() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitConfig
-
Enable or disable multiple schemas support.
R
- ReaderVisitor - Interface in com.github.mjeanroy.dbunit.commons.io
-
Visitor executed when a stream is read line by line.
- readLines(InputStream, ReaderVisitor) - Static method in class com.github.mjeanroy.dbunit.commons.io.Io
-
Read
reader
instance line by line and executevisitor
for each line. - REFRESH - com.github.mjeanroy.dbunit.core.operation.DbUnitOperation
- Replacements - Class in com.github.mjeanroy.dbunit.core.replacement
-
Replacement Objects.
- Replacements.Builder - Class in com.github.mjeanroy.dbunit.core.replacement
-
Builder used to create new replacements objects.
- ReplacementsProvider - Interface in com.github.mjeanroy.dbunit.core.replacement
-
Replacements provider, used to create re-usable replacements objects.
- resolveParameter(ParameterContext, ExtensionContext) - Method in class com.github.mjeanroy.dbunit.integration.jupiter.DbUnitExtension
- resolveParameter(ParameterContext, ExtensionContext) - Method in class com.github.mjeanroy.dbunit.integration.spring.jupiter.DbUnitEmbeddedDatabaseExtension
- resolveParameter(ParameterContext, ExtensionContext) - Method in class com.github.mjeanroy.dbunit.integration.spring.jupiter.EmbeddedDatabaseExtension
- Resource - Interface in com.github.mjeanroy.dbunit.core.resources
- ResourceException - Exception in com.github.mjeanroy.dbunit.exception
-
Error thrown when an error occurred when dealing with resources.
- ResourceException(String, Exception) - Constructor for exception com.github.mjeanroy.dbunit.exception.ResourceException
-
Create exception with original cause.
- ResourceLoader - Enum in com.github.mjeanroy.dbunit.core.resources
-
Implementations of strategies to load resources.
- ResourceNotFoundException - Exception in com.github.mjeanroy.dbunit.exception
-
Error thrown when resource is not found.
- ResourceNotFoundException(String) - Constructor for exception com.github.mjeanroy.dbunit.exception.ResourceNotFoundException
-
Create exception with
path
. - ResourceNotValidException - Exception in com.github.mjeanroy.dbunit.exception
-
Error thrown when resource is not a valid resource.
- reverseIterator() - Method in class com.github.mjeanroy.dbunit.core.dataset.DirectoryDataSet
S
- scripts() - Method in annotation type com.github.mjeanroy.dbunit.integration.spring.EmbeddedDatabaseConfiguration
-
Add SQL scripts to execute to initialize or populate the database.
- setCaseSensitiveTableNames(boolean) - Method in class com.github.mjeanroy.dbunit.core.dataset.DirectoryDataSetBuilder
-
Override case insensitive parameter.
- 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.
- setStartBlockComment(String) - Method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParserConfiguration.Builder
-
Override default pattern to detect start of an SQL block comment.
- setYamlFile(Resource) - Method in class com.github.mjeanroy.dbunit.core.dataset.YamlDataSetBuilder
-
Initialize JSON resource.
- singletonReplacement(String) - Static method in class com.github.mjeanroy.dbunit.core.replacement.Replacements
-
Create single replacement entry.
- singletonReplacement(String, boolean) - Static method in class com.github.mjeanroy.dbunit.core.replacement.Replacements
-
Create single replacement entry.
- singletonReplacement(String, byte) - Static method in class com.github.mjeanroy.dbunit.core.replacement.Replacements
-
Create single replacement entry.
- singletonReplacement(String, char) - Static method in class com.github.mjeanroy.dbunit.core.replacement.Replacements
-
Create single replacement entry.
- singletonReplacement(String, double) - Static method in class com.github.mjeanroy.dbunit.core.replacement.Replacements
-
Create single replacement entry.
- singletonReplacement(String, float) - Static method in class com.github.mjeanroy.dbunit.core.replacement.Replacements
-
Create single replacement entry.
- singletonReplacement(String, int) - Static method in class com.github.mjeanroy.dbunit.core.replacement.Replacements
-
Create single replacement entry.
- singletonReplacement(String, long) - Static method in class com.github.mjeanroy.dbunit.core.replacement.Replacements
-
Create single replacement entry.
- singletonReplacement(String, short) - Static method in class com.github.mjeanroy.dbunit.core.replacement.Replacements
-
Create single replacement entry.
- singletonReplacement(String, String) - Static method in class com.github.mjeanroy.dbunit.core.replacement.Replacements
-
Create single replacement entry.
- singletonReplacement(String, BigDecimal) - Static method in class com.github.mjeanroy.dbunit.core.replacement.Replacements
-
Create single replacement entry.
- singletonReplacement(String, BigInteger) - Static method in class com.github.mjeanroy.dbunit.core.replacement.Replacements
-
Create single replacement entry.
- singletonReplacement(String, Date) - Static method in class com.github.mjeanroy.dbunit.core.replacement.Replacements
-
Create single replacement entry.
- size() - Method in interface com.github.mjeanroy.dbunit.cache.Cache
-
Get the size of the cache.
- SnakeYamlParser - Class in com.github.mjeanroy.dbunit.yaml
-
YAML Parser using SnakeYAML as internal implementation.
- sql() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitInit
-
Set of SQL scripts to load
- 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
-
Run SQL scripts against SQL
Connection
. - SqlScriptParserConfiguration - Class in com.github.mjeanroy.dbunit.core.sql
-
Configuration for SQL scripts parser.
- SqlScriptParserConfiguration.Builder - Class in com.github.mjeanroy.dbunit.core.sql
-
Builder for
SqlScriptParserConfiguration
. - startsWith(String, String, String, Object...) - Static method in class com.github.mjeanroy.dbunit.commons.lang.PreConditions
-
Ensure that given
value
is notnull
, empty or blank and starts with givenprefix
. - Strings - Class in com.github.mjeanroy.dbunit.commons.lang
-
Static Strings Utilities.
- supportsParameter(ParameterContext, ExtensionContext) - Method in class com.github.mjeanroy.dbunit.integration.jupiter.DbUnitExtension
- supportsParameter(ParameterContext, ExtensionContext) - Method in class com.github.mjeanroy.dbunit.integration.spring.jupiter.DbUnitEmbeddedDatabaseExtension
- supportsParameter(ParameterContext, ExtensionContext) - Method in class com.github.mjeanroy.dbunit.integration.spring.jupiter.EmbeddedDatabaseExtension
T
- toFile() - Method in interface com.github.mjeanroy.dbunit.core.resources.Resource
-
Return a File handle for this resource.
- toString() - Method in class com.github.mjeanroy.dbunit.core.dataset.DirectoryDataSet
- toString() - Method in class com.github.mjeanroy.dbunit.core.jdbc.JdbcConfiguration
- toString() - Method in class com.github.mjeanroy.dbunit.core.jdbc.JdbcDataSourceConnectionFactory
- toString() - Method in class com.github.mjeanroy.dbunit.core.jdbc.JdbcDefaultConnectionFactory
- toString() - Method in class com.github.mjeanroy.dbunit.core.replacement.Replacements
- toString() - Method in class com.github.mjeanroy.dbunit.core.sql.SqlScriptParserConfiguration
- toString() - Method in class com.github.mjeanroy.dbunit.integration.spring.EmbeddedDatabaseRunner
- ToStringBuilder - Class in com.github.mjeanroy.dbunit.commons.lang
-
Utility class to implement easily
toString
methods. - trace(String) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with TRACE level.
- trace(String, Object) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with TRACE level.
- trace(String, Object...) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with TRACE level.
- trace(String, Object, Object) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with TRACE level.
- TransactionalDbUnitTestExecutionListener - Class in com.github.mjeanroy.dbunit.integration.spring
-
Provide integration between spring
TransactionalTestExecutionListener
and customDbUnitTestExecutionListener
:TransactionalTestExecutionListener
will be executed first.DbUnitTestExecutionListener
will be executed last. - TransactionalDbUnitTestExecutionListener() - Constructor for class com.github.mjeanroy.dbunit.integration.spring.TransactionalDbUnitTestExecutionListener
-
Create listeners with defaults
TestExecutionListener
list. - TRUNCATE_TABLE - com.github.mjeanroy.dbunit.core.operation.DbUnitOperation
U
- update() - Method in class com.github.mjeanroy.dbunit.integration.liquibase.LiquibaseUpdater
-
Run liquibase update with
dbunit
andtest
contexts. - UPDATE - com.github.mjeanroy.dbunit.core.operation.DbUnitOperation
- url() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitConnection
-
Get JDBC Connection URL.
- URL - com.github.mjeanroy.dbunit.core.resources.ResourceLoader
-
Load file from HTTP url.
- user() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitConnection
-
Get JDBC user name.
V
- value() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitConfig
-
The interceptor class that will be instantiated and executed before applying DbUnit dataset.
- value() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitDataSet
-
Set of data set file to load.
- value() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitLiquibase
-
List of liquibase change logs to run (in order).
- value() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitSetup
-
Operation to load before test.
- value() - Method in annotation type com.github.mjeanroy.dbunit.core.annotations.DbUnitTearDown
-
Operation to execute after a test is performed.
- valueOf(String) - Static method in enum com.github.mjeanroy.dbunit.core.operation.DbUnitOperation
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.github.mjeanroy.dbunit.core.resources.ResourceLoader
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.github.mjeanroy.dbunit.core.operation.DbUnitOperation
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.github.mjeanroy.dbunit.core.resources.ResourceLoader
-
Returns an array containing the constants of this enum type, in the order they are declared.
- visit(String) - Method in interface com.github.mjeanroy.dbunit.commons.io.ReaderVisitor
-
Handle new line.
W
- warn(String) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with WARN level.
- warn(String, Object) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with WARN level.
- warn(String, Object...) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with WARN level.
- warn(String, Object, Object) - Method in interface com.github.mjeanroy.dbunit.loggers.Logger
-
Log message with WARN level.
- wrapException(Exception) - Method in class com.github.mjeanroy.dbunit.core.parsers.AbstractDatasetParser
- wrapException(Exception) - Method in class com.github.mjeanroy.dbunit.json.AbstractJsonParser
- wrapException(Exception) - Method in class com.github.mjeanroy.dbunit.yaml.AbstractYamlParser
Y
- YamlDataSet - Class in com.github.mjeanroy.dbunit.core.dataset
-
Implementation of
IDataSet
with YAML file as input. - YamlDataSetBuilder - Class in com.github.mjeanroy.dbunit.core.dataset
-
Builder for
YamlDataSet
instances. - YamlDataSetBuilder() - Constructor for class com.github.mjeanroy.dbunit.core.dataset.YamlDataSetBuilder
-
Create builder.
- YamlDataSetBuilder(Resource) - Constructor for class com.github.mjeanroy.dbunit.core.dataset.YamlDataSetBuilder
-
Create builder with JSON resource.
- YamlException - Exception in com.github.mjeanroy.dbunit.exception
-
Wrap external YAML parsing exception.
- YamlException(Exception) - Constructor for exception com.github.mjeanroy.dbunit.exception.YamlException
-
Wrap
Exception
. - YamlParser - Interface in com.github.mjeanroy.dbunit.yaml
-
Parse YAML file and return DBUnit dataSet as
Map
. - YamlParserFactory - Class in com.github.mjeanroy.dbunit.yaml
-
The goal of this factory is to create default instances of
YamlParser
.
All Classes All Packages