public class DbUnitValueComparerAssert extends DbUnitAssertBase
ValueComparers for the column comparisons.valueComparerDefaults| Constructor and Description |
|---|
DbUnitValueComparerAssert() |
| Modifier and Type | Method and Description |
|---|---|
void |
assertWithValueComparer(IDataSet expectedDataSet,
IDataSet actualDataSet)
Asserts the two specified
IDataSets comparing their columns using
the default ValueComparer and handles failures using the default
FailureHandler. |
void |
assertWithValueComparer(IDataSet expectedDataSet,
IDataSet actualDataSet,
ValueComparer defaultValueComparer)
Asserts the two specified
IDataSets comparing their columns using
the specified defaultValueComparer and handles failures using the default
FailureHandler. |
void |
assertWithValueComparer(IDataSet expectedDataSet,
IDataSet actualDataSet,
ValueComparer defaultValueComparer,
Map<String,Map<String,ValueComparer>> tableColumnValueComparers)
Asserts the two specified
IDataSets comparing their columns using
the specified columnValueComparers or defaultValueComparer and handles
failures using the default FailureHandler. |
void |
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 |
assertWithValueComparer(ITable expectedTable,
ITable actualTable,
Column[] additionalColumnInfo,
ValueComparer defaultValueComparer,
Map<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 |
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 |
assertWithValueComparer(ITable expectedTable,
ITable actualTable,
ValueComparer defaultValueComparer,
Map<String,ValueComparer> columnValueComparers)
Asserts the two specified
ITables comparing their columns using
the specified columnValueComparers or defaultValueComparer and handles
failures using the default FailureHandler. |
assertWithValueComparer, assertWithValueComparer, compareColumns, compareData, compareData, compareData, compareRowCounts, compareTableCounts, compareTableNames, compareTables, determineFailureHandler, determineValidColumnValueComparers, determineValidDefaultValueComparer, determineValidTableColumnValueComparers, determineValueComparer, failIfNecessary, getComparisonColumns, getDefaultFailureHandler, getDefaultFailureHandler, getSortedTableNames, setValueComparerDefaults, skipComparepublic void assertWithValueComparer(IDataSet expectedDataSet, IDataSet actualDataSet) throws DatabaseUnitException
IDataSets comparing their columns using
the default ValueComparer and handles failures using the default
FailureHandler. This method ignores the table names, the columns
order, the columns data type, and which columns are composing the primary
keys.expectedDataSet - IDataSet containing all expected results.actualDataSet - IDataSet containing all actual results.DatabaseUnitExceptionpublic void assertWithValueComparer(IDataSet expectedDataSet, IDataSet actualDataSet, ValueComparer defaultValueComparer) throws DatabaseUnitException
IDataSets comparing their columns using
the specified defaultValueComparer and handles failures using the default
FailureHandler. This method ignores the table names, the columns
order, the columns data type, and which columns are composing the primary
keys.expectedDataSet - IDataSet containing all expected results.actualDataSet - IDataSet containing all actual results.defaultValueComparer - ValueComparer to use with all column value
comparisons. Can be null and will default to
#getDefaultValueComparer().DatabaseUnitExceptionpublic void assertWithValueComparer(IDataSet expectedDataSet, IDataSet actualDataSet, ValueComparer defaultValueComparer, Map<String,Map<String,ValueComparer>> tableColumnValueComparers) throws DatabaseUnitException
IDataSets comparing their columns using
the specified columnValueComparers or defaultValueComparer and handles
failures using the default FailureHandler. This method ignores
the table names, the columns order, the columns data type, and which
columns are composing the primary keys.expectedDataSet - IDataSet containing all expected results.actualDataSet - IDataSet containing all actual results.defaultValueComparer - ValueComparer to use with column value comparisons
when the column name for the table is not in the
tableColumnValueComparers Map. Can be
null and will default to
#getDefaultValueComparer().tableColumnValueComparers - Map of ValueComparers to use for specific
tables and columns. Key is table name, value is Map of
column name in the table to ValueComparers. Can be
null and will default to using
#getDefaultColumnValueComparerMapForTable(String) or,
if that is empty, defaultValueComparer for all columns in all
tables.DatabaseUnitExceptionpublic void assertWithValueComparer(ITable expectedTable, ITable actualTable) throws DatabaseUnitException
ITables comparing their columns using
the default ValueComparer and handles failures using the default
FailureHandler. This method ignores the table names, the columns
order, the columns data type, and which columns are composing the primary
keys.expectedTable - ITable containing all expected results.actualTable - ITable containing all actual results.DatabaseUnitExceptionpublic void assertWithValueComparer(ITable expectedTable, ITable actualTable, ValueComparer defaultValueComparer) throws DatabaseUnitException
ITables comparing their columns using
the specified defaultValueComparer and handles failures using the default
FailureHandler. This method ignores the table names, the columns
order, the columns data type, and which columns are composing the primary
keys.expectedTable - ITable containing all expected results.actualTable - ITable containing all actual results.defaultValueComparer - ValueComparer to use with all column value
comparisons. Can be null and will default to
#getDefaultValueComparer().DatabaseUnitExceptionpublic void assertWithValueComparer(ITable expectedTable, ITable actualTable, ValueComparer defaultValueComparer, Map<String,ValueComparer> columnValueComparers) throws DatabaseUnitException
ITables comparing their columns using
the specified columnValueComparers or defaultValueComparer and handles
failures using the default FailureHandler. This method ignores
the table names, the columns order, the columns data type, and which
columns are composing the primary keys.expectedTable - ITable containing all expected results.actualTable - ITable containing all actual results.defaultValueComparer - ValueComparer to use with column value comparisons
when the column name for the table is not in the
columnValueComparers Map. Can be null and
will default to #getDefaultValueComparer().columnValueComparers - Map of ValueComparers to use for specific
columns. Key is column name in the table, value is
ValueComparer to use in comparing expected to actual
column values. Can be null and will default to
using
#getDefaultColumnValueComparerMapForTable(String) or,
if that is empty, defaultValueComparer for all columns in the
table.DatabaseUnitExceptionpublic void assertWithValueComparer(ITable expectedTable, ITable actualTable, Column[] additionalColumnInfo, ValueComparer defaultValueComparer, Map<String,ValueComparer> columnValueComparers) throws DatabaseUnitException
ITables comparing their columns using
the specified columnValueComparers or defaultValueComparer and handles
failures using the default FailureHandler, using
additionalColumnInfo, if specified. This method ignores the table names,
the columns order, the columns data type, and which columns are composing
the primary keys.expectedTable - ITable containing all expected results.actualTable - ITable containing all actual results.additionalColumnInfo - The columns to be printed out if the assert fails because of a
data mismatch. Provides some additional column values that may
be useful to quickly identify the columns for which the
mismatch occurred (for example a primary key column). Can be
nulldefaultValueComparer - ValueComparer to use with column value comparisons
when the column name for the table is not in the
columnValueComparers Map. Can be null and
will default to #getDefaultValueComparer().columnValueComparers - Map of ValueComparers to use for specific
columns. Key is column name in the table, value is
ValueComparer to use in comparing expected to actual
column values. Can be null and will default to
using
#getDefaultColumnValueComparerMapForTable(String) or,
if that is empty, defaultValueComparer for all columns in the
table.DatabaseUnitExceptionCopyright © 2002–2025. All rights reserved.