@FunctionalInterface public interface ValueComparer
| Modifier and Type | Method and Description |
|---|---|
String |
compare(ITable expectedTable,
ITable actualTable,
int rowNum,
String columnName,
DataType dataType,
Object expectedValue,
Object actualValue)
Compare expected and actual values.
|
String compare(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) throws DatabaseUnitException
expectedTable - Table containing all expected results.actualTable - Table containing all actual results.rowNum - The current row number comparing.columnName - The name of the current column comparing.dataType - The DataType for the current column comparing. Use
DataType.compare(Object, Object) for equal, not equal,
less than, and greater than comparisons.expectedValue - The current expected value for the column.actualValue - The current actual value for the column.DatabaseUnitExceptionCopyright © 2002–2025. All rights reserved.