| Modifier and Type | Method and Description |
|---|---|
ITable |
DefaultPrepAndExpectedTestCase.applyColumnFilters(ITable table,
java.lang.String[] excludeColumns,
java.lang.String[] includeColumns)
Apply the specified exclude and include column filters to the specified
table.
|
ITable |
DefaultPrepAndExpectedTestCase.loadTableDataFromDatabase(java.lang.String tableName,
IDatabaseConnection connection) |
ITable |
DefaultPrepAndExpectedTestCase.loadTableDataFromDataSet(java.lang.String tableName) |
| Modifier and Type | Method and Description |
|---|---|
ITable |
DefaultPrepAndExpectedTestCase.applyColumnFilters(ITable table,
java.lang.String[] excludeColumns,
java.lang.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,
java.lang.String tableName,
java.lang.String sqlQuery,
java.lang.String[] ignoreCols) |
static void |
Assertion.assertEqualsIgnoreCols(ITable expectedTable,
ITable actualTable,
java.lang.String[] ignoreCols) |
static void |
Assertion.assertWithValueComparer(ITable expectedTable,
ITable actualTable,
Column[] additionalColumnInfo,
ValueComparer defaultValueComparer,
java.util.Map<java.lang.String,ValueComparer> columnValueComparers) |
static void |
Assertion.assertWithValueComparer(ITable expectedTable,
ITable actualTable,
FailureHandler failureHandler,
ValueComparer defaultValueComparer,
java.util.Map<java.lang.String,ValueComparer> columnValueComparers) |
static void |
Assertion.assertWithValueComparer(ITable expectedTable,
ITable actualTable,
ValueComparer defaultValueComparer,
java.util.Map<java.lang.String,ValueComparer> columnValueComparers) |
protected Column[] |
DefaultPrepAndExpectedTestCase.makeAdditionalColumnInfo(ITable expectedTable,
java.lang.String[] excludeColumns)
Don't add excluded columns to additionalColumnInfo as they are not found
and generate a not found message in the fail message.
|
protected void |
DefaultPrepAndExpectedTestCase.verifyData(ITable expectedTable,
ITable actualTable,
java.lang.String[] excludeColumns,
java.lang.String[] includeColumns,
ValueComparer defaultValueComparer,
java.util.Map<java.lang.String,ValueComparer> columnValueComparers)
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,
java.lang.String tableName,
java.lang.String sqlQuery,
java.lang.String[] ignoreCols)
Compare a table with a table generated from an sql query.
|
void |
DbUnitAssert.assertEqualsIgnoreCols(ITable expectedTable,
ITable actualTable,
java.lang.String[] ignoreCols)
Compare the given tables ignoring specified columns.
|
void |
DbUnitValueComparerAssert.assertWithValueComparer(ITable expectedTable,
ITable actualTable)
Asserts the two specified
ITables comparing their columns using
the default ValueComparer and handles failures using the default
FailureHandler. |
void |
DbUnitValueComparerAssert.assertWithValueComparer(ITable expectedTable,
ITable actualTable,
Column[] additionalColumnInfo,
ValueComparer defaultValueComparer,
java.util.Map<java.lang.String,ValueComparer> columnValueComparers)
Asserts the two specified
ITables comparing their columns using
the specified columnValueComparers or defaultValueComparer and handles
failures using the default FailureHandler, using
additionalColumnInfo, if specified. |
void |
DbUnitAssertBase.assertWithValueComparer(ITable expectedTable,
ITable actualTable,
FailureHandler failureHandler,
ValueComparer defaultValueComparer,
java.util.Map<java.lang.String,ValueComparer> columnValueComparers)
Asserts the two specified
ITables comparing their columns using
the specified columnValueComparers or defaultValueComparer and handles
failures using the specified failureHandler. |
void |
DbUnitValueComparerAssert.assertWithValueComparer(ITable expectedTable,
ITable actualTable,
ValueComparer defaultValueComparer)
Asserts the two specified
ITables comparing their columns using
the specified defaultValueComparer and handles failures using the default
FailureHandler. |
void |
DbUnitValueComparerAssert.assertWithValueComparer(ITable expectedTable,
ITable actualTable,
ValueComparer defaultValueComparer,
java.util.Map<java.lang.String,ValueComparer> columnValueComparers)
Asserts the two specified
ITables comparing their columns using
the specified columnValueComparers or defaultValueComparer and handles
failures using the default FailureHandler. |
protected void |
DbUnitAssertBase.compareData(ITable expectedTable,
ITable actualTable,
DbUnitAssert.ComparisonColumn[] comparisonCols,
FailureHandler failureHandler) |
protected void |
DbUnitAssertBase.compareData(ITable expectedTable,
ITable actualTable,
DbUnitAssert.ComparisonColumn[] comparisonCols,
FailureHandler failureHandler,
ValueComparer defaultValueComparer,
java.util.Map<java.lang.String,ValueComparer> columnValueComparers) |
protected void |
DbUnitAssertBase.compareData(ITable expectedTable,
ITable actualTable,
DbUnitAssert.ComparisonColumn[] comparisonCols,
FailureHandler failureHandler,
ValueComparer defaultValueComparer,
java.util.Map<java.lang.String,ValueComparer> columnValueComparers,
int rowNum,
int columnNum) |
protected boolean |
DbUnitAssertBase.compareRowCounts(ITable expectedTable,
ITable actualTable,
FailureHandler failureHandler,
java.lang.String expectedTableName) |
protected void |
DbUnitAssertBase.failIfNecessary(ITable expectedTable,
ITable actualTable,
FailureHandler failureHandler,
int rowNum,
java.lang.String columnName,
java.lang.Object expectedValue,
java.lang.Object actualValue,
java.lang.String failMessage) |
java.lang.String |
FailureHandler.getAdditionalInfo(ITable expectedTable,
ITable actualTable,
int row,
java.lang.String columnName)
Returns a string to be appended to the assertion failure message.
|
java.lang.String |
DefaultFailureHandler.getAdditionalInfo(ITable expectedTable,
ITable actualTable,
int row,
java.lang.String columnName) |
protected java.lang.Object |
DefaultFailureHandler.getColumnValue(ITable table,
int rowIndex,
java.lang.String columnName) |
| Constructor and Description |
|---|
Difference(ITable expectedTable,
ITable actualTable,
int rowIndex,
java.lang.String columnName,
java.lang.Object expectedValue,
java.lang.Object actualValue) |
Difference(ITable expectedTable,
ITable actualTable,
int rowIndex,
java.lang.String columnName,
java.lang.Object expectedValue,
java.lang.Object actualValue,
java.lang.String failMessage) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
ValueComparerBase.compare(ITable expectedTable,
ITable actualTable,
int rowNum,
java.lang.String columnName,
DataType dataType,
java.lang.Object expectedValue,
java.lang.Object actualValue)
Compare expected and actual values.
|
java.lang.String |
ValueComparer.compare(ITable expectedTable,
ITable actualTable,
int rowNum,
java.lang.String columnName,
DataType dataType,
java.lang.Object expectedValue,
java.lang.Object actualValue)
Compare expected and actual values.
|
protected java.lang.String |
ValueComparerTemplateBase.doCompare(ITable expectedTable,
ITable actualTable,
int rowNum,
java.lang.String columnName,
DataType dataType,
java.lang.Object expectedValue,
java.lang.Object actualValue)
Do the comparison and return a fail message or null if comparison passes.
|
protected abstract java.lang.String |
ValueComparerBase.doCompare(ITable expectedTable,
ITable actualTable,
int rowNum,
java.lang.String columnName,
DataType dataType,
java.lang.Object expectedValue,
java.lang.Object actualValue)
Do the comparison and return a fail message or null if comparison passes.
|
java.lang.String |
ConditionalSetBiValueComparer.doCompare(ITable expectedTable,
ITable actualTable,
int rowNum,
java.lang.String columnName,
DataType dataType,
java.lang.Object expectedValue,
java.lang.Object actualValue) |
java.lang.String |
ConditionalSelectorMultiValueComparer.doCompare(ITable expectedTable,
ITable actualTable,
int rowNum,
java.lang.String columnName,
DataType dataType,
java.lang.Object expectedValue,
java.lang.Object actualValue) |
protected boolean |
ConditionalSetBiValueComparer.isActualValueInValues(ITable actualTable,
int rowNum) |
protected abstract boolean |
ValueComparerTemplateBase.isExpected(ITable expectedTable,
ITable actualTable,
int rowNum,
java.lang.String columnName,
DataType dataType,
java.lang.Object expectedValue,
java.lang.Object actualValue) |
protected boolean |
NeverFailsValueComparer.isExpected(ITable expectedTable,
ITable actualTable,
int rowNum,
java.lang.String columnName,
DataType dataType,
java.lang.Object expectedValue,
java.lang.Object actualValue) |
protected boolean |
IsActualWithinToleranceOfExpectedTimestampValueComparer.isExpected(ITable expectedTable,
ITable actualTable,
int rowNum,
java.lang.String columnName,
DataType dataType,
java.lang.Object expectedValue,
java.lang.Object actualValue) |
protected boolean |
IsActualNotEqualToExpectedValueComparer.isExpected(ITable expectedTable,
ITable actualTable,
int rowNum,
java.lang.String columnName,
DataType dataType,
java.lang.Object expectedValue,
java.lang.Object actualValue) |
protected boolean |
IsActualLessThanOrEqualToExpectedValueComparer.isExpected(ITable expectedTable,
ITable actualTable,
int rowNum,
java.lang.String columnName,
DataType dataType,
java.lang.Object expectedValue,
java.lang.Object actualValue) |
protected boolean |
IsActualLessThanExpectedValueComparer.isExpected(ITable expectedTable,
ITable actualTable,
int rowNum,
java.lang.String columnName,
DataType dataType,
java.lang.Object expectedValue,
java.lang.Object actualValue) |
protected boolean |
IsActualGreaterThanOrEqualToExpectedValueComparer.isExpected(ITable expectedTable,
ITable actualTable,
int rowNum,
java.lang.String columnName,
DataType dataType,
java.lang.Object expectedValue,
java.lang.Object actualValue) |
protected boolean |
IsActualGreaterThanExpectedValueComparer.isExpected(ITable expectedTable,
ITable actualTable,
int rowNum,
java.lang.String columnName,
DataType dataType,
java.lang.Object expectedValue,
java.lang.Object actualValue) |
protected boolean |
IsActualEqualToExpectedWithEmptyFailMessageValueComparer.isExpected(ITable expectedTable,
ITable actualTable,
int rowNum,
java.lang.String columnName,
DataType dataType,
java.lang.Object expectedValue,
java.lang.Object actualValue) |
protected boolean |
IsActualEqualToExpectedValueComparer.isExpected(ITable expectedTable,
ITable actualTable,
int rowNum,
java.lang.String columnName,
DataType dataType,
java.lang.Object expectedValue,
java.lang.Object actualValue) |
T |
ValueFactory.make(ITable table,
int rowNum)
Make the instance from the row in the table.
|
ValueComparer |
ValueComparerSelector.select(ITable expectedTable,
ITable actualTable,
int rowNum,
java.lang.String columnName,
DataType dataType,
java.lang.Object expectedValue,
java.lang.Object actualValue,
java.util.Map<java.lang.Object,ValueComparer> valueComparers) |
| 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 |
IDatabaseConnection.createQueryTable(java.lang.String tableName,
java.lang.String sql)
Creates a table with the result of the specified SQL statement.
|
ITable |
AbstractDatabaseConnection.createQueryTable(java.lang.String resultName,
java.lang.String sql) |
ITable |
IDatabaseConnection.createTable(java.lang.String tableName)
Creates a table with the result of a
select * from tableName SQL statement. |
ITable |
AbstractDatabaseConnection.createTable(java.lang.String tableName) |
ITable |
IDatabaseConnection.createTable(java.lang.String tableName,
java.sql.PreparedStatement preparedStatement)
Creates a table using the given PreparedStatement to retrieve a ResultSet.
|
ITable |
AbstractDatabaseConnection.createTable(java.lang.String resultName,
java.sql.PreparedStatement preparedStatement) |
ITable |
QueryTableIterator.getTable()
Returns the current table.
|
ITable |
DatabaseTableIterator.getTable() |
ITable |
DatabaseDataSet.getTable(java.lang.String tableName) |
| Constructor and Description |
|---|
PrimaryKeyFilteredTableWrapper(ITable table,
java.util.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 |
SortedDataSet.getTable(java.lang.String tableName) |
ITable |
ReplacementDataSet.getTable(java.lang.String tableName) |
ITable |
LowerCaseDataSet.getTable(java.lang.String tableName) |
ITable |
IDataSet.getTable(java.lang.String tableName)
Returns the specified table.
|
ITable |
ForwardOnlyDataSet.getTable(java.lang.String tableName) |
ITable |
FilteredDataSet.getTable(java.lang.String tableName) |
ITable |
CaseInsensitiveDataSet.getTable(java.lang.String tableName)
Deprecated.
|
ITable |
AbstractDataSet.getTable(java.lang.String tableName) |
ITable[] |
IDataSet.getTables()
Deprecated.
Use
IDataSet.iterator() or IDataSet.reverseIterator() instead. |
ITable[] |
AbstractDataSet.getTables() |
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(java.lang.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(java.lang.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,
java.util.Map objectMap,
java.util.Map substringMap,
java.lang.String startDelimiter,
java.lang.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,
java.lang.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,
java.lang.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,
java.lang.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,
java.lang.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,
java.lang.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(java.lang.String tableName)
Not supported.
|
| Modifier and Type | Method and Description |
|---|---|
ITable |
FlatDtdDataSet.getTable(java.lang.String tableName) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
InsertOperation.equalsIgnoreMapping(java.util.BitSet ignoreMapping,
ITable table,
int row) |
protected java.util.BitSet |
InsertOperation.getIgnoreMapping(ITable table,
int row) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
TableFormatter.format(ITable table)
Formats a table with all data in a beautiful way.
|
Copyright © 2002-2018. All Rights Reserved.