Package | Description |
---|---|
org.dbunit | |
org.dbunit.assertion | |
org.dbunit.database | |
org.dbunit.dataset | |
org.dbunit.dataset.filter | |
org.dbunit.dataset.stream | |
org.dbunit.dataset.xml | |
org.dbunit.operation | |
org.dbunit.util |
Modifier and Type | Method and Description |
---|---|
ITable |
DefaultPrepAndExpectedTestCase.applyColumnFilters(ITable table,
String[] excludeColumns,
String[] includeColumns)
Apply the specified exclude and include column filters to the specified
table.
|
Modifier and Type | Method and Description |
---|---|
ITable |
DefaultPrepAndExpectedTestCase.applyColumnFilters(ITable table,
String[] excludeColumns,
String[] includeColumns)
Apply the specified exclude and include column filters to the specified
table.
|
static void |
Assertion.assertEquals(ITable expectedTable,
ITable actualTable) |
static void |
Assertion.assertEquals(ITable expectedTable,
ITable actualTable,
Column[] additionalColumnInfo) |
static void |
Assertion.assertEquals(ITable expectedTable,
ITable actualTable,
FailureHandler failureHandler) |
static void |
Assertion.assertEqualsByQuery(ITable expectedTable,
IDatabaseConnection connection,
String tableName,
String sqlQuery,
String[] ignoreCols) |
static void |
Assertion.assertEqualsIgnoreCols(ITable expectedTable,
ITable actualTable,
String[] ignoreCols) |
void |
DefaultPrepAndExpectedTestCase.verifyData(ITable expectedTable,
ITable actualTable,
String[] excludeColumns,
String[] includeColumns)
For the specified expected and actual tables (and excluding and including
the specified columns), verify the actual data is as expected.
|
Modifier and Type | Method and Description |
---|---|
ITable |
Difference.getActualTable() |
ITable |
Difference.getExpectedTable() |
Modifier and Type | Method and Description |
---|---|
void |
DbUnitAssert.assertEquals(ITable expectedTable,
ITable actualTable)
Asserts that the two specified tables are equals.
|
void |
DbUnitAssert.assertEquals(ITable expectedTable,
ITable actualTable,
Column[] additionalColumnInfo)
Asserts that the two specified tables are equals.
|
void |
DbUnitAssert.assertEquals(ITable expectedTable,
ITable actualTable,
FailureHandler failureHandler)
Asserts that the two specified tables are equals.
|
void |
DbUnitAssert.assertEqualsByQuery(ITable expectedTable,
IDatabaseConnection connection,
String tableName,
String sqlQuery,
String[] ignoreCols)
Compare a table with a table generated from an sql query.
|
void |
DbUnitAssert.assertEqualsIgnoreCols(ITable expectedTable,
ITable actualTable,
String[] ignoreCols)
Compare the given tables ignoring specified columns.
|
protected void |
DbUnitAssert.compareData(ITable expectedTable,
ITable actualTable,
DbUnitAssert.ComparisonColumn[] comparisonCols,
FailureHandler failureHandler) |
String |
DefaultFailureHandler.getAdditionalInfo(ITable expectedTable,
ITable actualTable,
int row,
String columnName) |
String |
FailureHandler.getAdditionalInfo(ITable expectedTable,
ITable actualTable,
int row,
String columnName)
Returns a string to be appended to the assertion failure message.
|
protected Object |
DefaultFailureHandler.getColumnValue(ITable table,
int rowIndex,
String columnName) |
Constructor and Description |
---|
Difference(ITable expectedTable,
ITable actualTable,
int rowIndex,
String columnName,
Object expectedValue,
Object actualValue) |
Modifier and Type | Interface and Description |
---|---|
interface |
IResultSetTable |
Modifier and Type | Class and Description |
---|---|
class |
AbstractResultSetTable |
class |
CachedResultSetTable |
class |
ForwardOnlyResultSetTable |
class |
PrimaryKeyFilteredTableWrapper
This class is a wrapper for another table with the condition that only a subset
of the original table will be available - the subset is defined by the set of
primary keys that are allowed in the new table.
|
class |
ScrollableResultSetTable |
Modifier and Type | Method and Description |
---|---|
ITable |
AbstractDatabaseConnection.createQueryTable(String resultName,
String sql) |
ITable |
IDatabaseConnection.createQueryTable(String tableName,
String sql)
Creates a table with the result of the specified SQL statement.
|
ITable |
AbstractDatabaseConnection.createTable(String tableName) |
ITable |
IDatabaseConnection.createTable(String tableName)
Creates a table with the result of a
select * from tableName SQL statement. |
ITable |
AbstractDatabaseConnection.createTable(String resultName,
PreparedStatement preparedStatement) |
ITable |
IDatabaseConnection.createTable(String tableName,
PreparedStatement preparedStatement)
Creates a table using the given PreparedStatement to retrieve a ResultSet.
|
ITable |
DatabaseTableIterator.getTable() |
ITable |
QueryTableIterator.getTable()
Returns the current table.
|
ITable |
DatabaseDataSet.getTable(String tableName) |
Constructor and Description |
---|
PrimaryKeyFilteredTableWrapper(ITable table,
Set allowedPKs)
Creates a PKFilteredTable given an original table and the allowed primary keys
for that table.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractTable |
class |
CachedTable |
class |
CaseInsensitiveTable
Deprecated.
All IDataSet implementations are case insensitive since DbUnit 1.5
|
class |
ColumnFilterTable
A table that filters some columns out from the original table.
|
class |
CompositeTable |
class |
DefaultTable
Default table implementation backed by a simple java in-memory list.
|
class |
ForwardOnlyTable |
class |
ReplacementTable
Decorator that replaces configured values from the decorated table
with replacement values.
|
class |
RowFilterTable
Filters table rows by using arbitrary column values of the table to check if a row should be filtered or not.
|
class |
SortedTable
This is a ITable decorator that provide a sorted view of the decorated table.
|
Modifier and Type | Method and Description |
---|---|
ITable |
ITableIterator.getTable()
Returns the current table.
|
ITable |
DefaultTableIterator.getTable() |
ITable |
FilteredDataSet.getTable(String tableName) |
ITable |
SortedDataSet.getTable(String tableName) |
ITable |
AbstractDataSet.getTable(String tableName) |
ITable |
IDataSet.getTable(String tableName)
Returns the specified table.
|
ITable |
ForwardOnlyDataSet.getTable(String tableName) |
ITable |
CaseInsensitiveDataSet.getTable(String tableName)
Deprecated.
|
ITable |
ReplacementDataSet.getTable(String tableName) |
ITable |
LowerCaseDataSet.getTable(String tableName) |
ITable[] |
AbstractDataSet.getTables() |
ITable[] |
IDataSet.getTables()
Deprecated.
Use
IDataSet.iterator() or IDataSet.reverseIterator() instead. |
static ITable[] |
DataSetUtils.getTables(IDataSet dataSet)
Returns the tables from the specified dataset.
|
static ITable[] |
DataSetUtils.getTables(ITableIterator iterator)
Returns the tables from the specified iterator.
|
static ITable[] |
DataSetUtils.getTables(String[] names,
IDataSet dataSet)
Search and returns the specified tables from the specified dataSet.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultDataSet.addTable(ITable table)
Add a new table in this dataset.
|
void |
DefaultTable.addTableRows(ITable table)
Inserts all rows from the specified table.
|
static void |
DataSetUtils.assertEquals(ITable expectedTable,
ITable actualTable)
Deprecated.
Use Assertion.assertEquals
|
Constructor and Description |
---|
AbstractRowComparator(ITable table,
Column[] sortColumns) |
CachedTable(ITable table) |
CaseInsensitiveTable(ITable table)
Deprecated.
|
ColumnFilterTable(ITable table,
IColumnFilter columnFilter) |
CompositeDataSet(ITable[] tables)
Creates a composite dataset that combines tables having identical name.
|
CompositeDataSet(ITable[] tables,
boolean caseSensitiveTableNames)
Creates a composite dataset that combines tables having identical name.
|
CompositeTable(ITable table1,
ITable table2)
Creates a composite table that combines the specified specified tables.
|
CompositeTable(ITableMetaData metaData,
ITable table)
Creates a composite table that combines the specified metadata with the
specified table.
|
CompositeTable(ITableMetaData metaData,
ITable[] tables)
Creates a composite table that combines the specified metadata with the
specified tables.
|
CompositeTable(String newName,
ITable table)
Creates a composite dataset that encapsulate the specified table with a
new name.
|
DefaultDataSet(ITable table) |
DefaultDataSet(ITable[] tables) |
DefaultDataSet(ITable[] tables,
boolean caseSensitiveTableNames)
Creates a default dataset which consists of the given tables
|
DefaultDataSet(ITable table1,
ITable table2) |
DefaultTableIterator(ITable[] tables) |
DefaultTableIterator(ITable[] tables,
boolean reversed) |
ForwardOnlyTable(ITable table) |
LowerCaseDataSet(ITable table) |
LowerCaseDataSet(ITable[] tables) |
ReplacementTable(ITable table)
Create a new ReplacementTable object that decorates the specified table.
|
ReplacementTable(ITable table,
Map objectMap,
Map substringMap,
String startDelimiter,
String endDelimiter) |
RowComparator(ITable table,
Column[] sortColumns) |
RowComparatorByString(ITable table,
Column[] sortColumns) |
RowFilterTable(ITable table,
IRowFilter rowFilter)
Creates a new
ITable where some rows can be filtered out from the original table |
SortedTable(ITable table)
Sort the decorated table by its own columns order which is defined by
getTableMetaData() . |
SortedTable(ITable table,
Column[] columns)
Sort the decorated table by specified columns order.
|
SortedTable(ITable table,
ITableMetaData metaData)
Sort the decorated table by specified metadata columns order.
|
SortedTable(ITable table,
String[] columnNames)
Sort the decorated table by specified columns order.
|
Modifier and Type | Method and Description |
---|---|
static ITable |
DefaultColumnFilter.excludedColumnsTable(ITable table,
Column[] columns)
Returns a table backed by the specified table but with specified
columns excluded.
|
static ITable |
DefaultColumnFilter.excludedColumnsTable(ITable table,
String[] columnNames)
Returns a table backed by the specified table but with specified
columns excluded.
|
ITable |
SequenceTableIterator.getTable() |
static ITable |
DefaultColumnFilter.includedColumnsTable(ITable table,
Column[] columns)
Returns a table backed by the specified table that only exposes specified
columns.
|
static ITable |
DefaultColumnFilter.includedColumnsTable(ITable table,
String[] columnNames)
Returns a table backed by the specified table that only exposes specified
columns.
|
Modifier and Type | Method and Description |
---|---|
static ITable |
DefaultColumnFilter.excludedColumnsTable(ITable table,
Column[] columns)
Returns a table backed by the specified table but with specified
columns excluded.
|
static ITable |
DefaultColumnFilter.excludedColumnsTable(ITable table,
String[] columnNames)
Returns a table backed by the specified table but with specified
columns excluded.
|
static ITable |
DefaultColumnFilter.includedColumnsTable(ITable table,
Column[] columns)
Returns a table backed by the specified table that only exposes specified
columns.
|
static ITable |
DefaultColumnFilter.includedColumnsTable(ITable table,
String[] columnNames)
Returns a table backed by the specified table that only exposes specified
columns.
|
Modifier and Type | Method and Description |
---|---|
ITable |
StreamingIterator.getTable() |
ITable |
StreamingDataSet.getTable(String tableName)
Not supported.
|
Modifier and Type | Method and Description |
---|---|
ITable |
FlatDtdDataSet.getTable(String tableName) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
InsertOperation.equalsIgnoreMapping(BitSet ignoreMapping,
ITable table,
int row) |
protected BitSet |
InsertOperation.getIgnoreMapping(ITable table,
int row) |
Modifier and Type | Method and Description |
---|---|
String |
TableFormatter.format(ITable table)
Formats a table with all data in a beautiful way.
|
Copyright © 2002–2017. All rights reserved.