Interface ValueComparerSelector
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy for selecting a
ValueComparer from a Map of them.- Since:
- 2.6.0
- Author:
- Jeff Jensen
-
Method Summary
-
Method Details
-
select
ValueComparer select(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue, Map<Object, ValueComparer> valueComparers) throws DatabaseUnitExceptionSelects aValueComparerfrom the given map for the given row and column.- Parameters:
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- TheDataTypefor the current column comparing.expectedValue- The current expected value for the column.actualValue- The current actual value for the column.valueComparers- The map of value comparers to select from.- Returns:
- The selected
ValueComparerfrom the specified valueComparers map. - Throws:
DatabaseUnitException- if a value comparer cannot be selected.
-