public class DbUnitValueComparerAssert extends DbUnitAssertBase
ValueComparer
s for the column comparisons.Constructor and Description |
---|
DbUnitValueComparerAssert() |
Modifier and Type | Method and Description |
---|---|
void |
assertWithValueComparer(IDataSet expectedDataSet,
IDataSet actualDataSet)
Asserts the two specified
IDataSet s 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
IDataSet s 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
IDataSet s 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
ITable s 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
ITable s 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
ITable s 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
ITable s 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, getDefaultColumnValueComparerMapForTable, getDefaultFailureHandler, getDefaultFailureHandler, getDefaultTableColumnValueComparerMap, getDefaultValueComparer, getSortedTableNames, skipCompare
public void assertWithValueComparer(IDataSet expectedDataSet, IDataSet actualDataSet) throws DatabaseUnitException
IDataSet
s 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.DatabaseUnitException
public void assertWithValueComparer(IDataSet expectedDataSet, IDataSet actualDataSet, ValueComparer defaultValueComparer) throws DatabaseUnitException
IDataSet
s 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
DbUnitAssertBase.getDefaultValueComparer()
.DatabaseUnitException
public void assertWithValueComparer(IDataSet expectedDataSet, IDataSet actualDataSet, ValueComparer defaultValueComparer, Map<String,Map<String,ValueComparer>> tableColumnValueComparers) throws DatabaseUnitException
IDataSet
s 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
DbUnitAssertBase.getDefaultValueComparer()
.tableColumnValueComparers
- Map
of ValueComparer
s to use for specific
tables and columns. Key is table name, value is Map
of
column name in the table to ValueComparer
s. Can be
null
and will default to using
DbUnitAssertBase.getDefaultColumnValueComparerMapForTable(String)
or,
if that is empty, defaultValueComparer for all columns in all
tables.DatabaseUnitException
public void assertWithValueComparer(ITable expectedTable, ITable actualTable) throws DatabaseUnitException
ITable
s 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.DatabaseUnitException
public void assertWithValueComparer(ITable expectedTable, ITable actualTable, ValueComparer defaultValueComparer) throws DatabaseUnitException
ITable
s 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
DbUnitAssertBase.getDefaultValueComparer()
.DatabaseUnitException
public void assertWithValueComparer(ITable expectedTable, ITable actualTable, ValueComparer defaultValueComparer, Map<String,ValueComparer> columnValueComparers) throws DatabaseUnitException
ITable
s 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 DbUnitAssertBase.getDefaultValueComparer()
.columnValueComparers
- Map
of ValueComparer
s 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
DbUnitAssertBase.getDefaultColumnValueComparerMapForTable(String)
or,
if that is empty, defaultValueComparer for all columns in the
table.DatabaseUnitException
public void assertWithValueComparer(ITable expectedTable, ITable actualTable, Column[] additionalColumnInfo, ValueComparer defaultValueComparer, Map<String,ValueComparer> columnValueComparers) throws DatabaseUnitException
ITable
s 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
null
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 DbUnitAssertBase.getDefaultValueComparer()
.columnValueComparers
- Map
of ValueComparer
s 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
DbUnitAssertBase.getDefaultColumnValueComparerMapForTable(String)
or,
if that is empty, defaultValueComparer for all columns in the
table.DatabaseUnitException
Copyright © 2002–2018. All rights reserved.