@Documented @Inherited @Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) @Repeatable(value=ExpectedDatabases.class) public @interface ExpectedDatabase
DbUnitTestExecutionListener
Modifier and Type | Optional Element and Description |
---|---|
DatabaseAssertionMode |
assertionMode
Database assertion mode to use.
|
Class<? extends org.dbunit.dataset.filter.IColumnFilter>[] |
columnFilters
A set of
IColumnFilter that will be applied to column comparison when using
non-strict DatabaseAssertionMode . |
String |
connection
The name of the connection that should be used when verifying data.
|
Class<? extends DataSetModifier>[] |
modifiers
A set of
DataSetModifier that will be applied to the IDataSet before it is used. |
boolean |
override
If this expectation overrides any others that have been defined at a higher level.
|
String |
query
Optional SQL to retrieve the actual subset of the table rows from the database.
|
String |
table
Optional table name that can be used to limit the comparison to a specific table.
|
String |
value
Provides the location of the dataset that will be used to test the database.
|
public abstract String connection
@DbUnitConfiguration
or left blank to use the default connection.public abstract String value
DbUnitConfiguration.dataSetLoader()
public abstract DatabaseAssertionMode assertionMode
DatabaseAssertionMode.DEFAULT
.public abstract String table
public abstract String query
table
name
must also be specified when using a query.public abstract boolean override
true
public abstract Class<? extends DataSetModifier>[] modifiers
DataSetModifier
that will be applied to the IDataSet
before it is used. Can refer to a
static or inner class of the test.public abstract Class<? extends org.dbunit.dataset.filter.IColumnFilter>[] columnFilters
IColumnFilter
that will be applied to column comparison when using
non-strict DatabaseAssertionMode
.
Specify this when you want to use DTD with your expected dataset XML file but want to exclude some columns from comparison.
Copyright © 2016. All rights reserved.