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.

@FunctionalInterface public interface ValueComparerSelector
Strategy for selecting a ValueComparer from a Map of them.
Since:
2.6.0
Author:
Jeff Jensen
  • Method Details

    • select

      ValueComparer select(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue, Map<Object,ValueComparer> valueComparers) throws DatabaseUnitException
      Selects a ValueComparer from 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 - The DataType for 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 ValueComparer from the specified valueComparers map.
      Throws:
      DatabaseUnitException - if a value comparer cannot be selected.