View Javadoc
1   package org.dbunit.assertion.comparer.value;
2   
3   import java.util.Map;
4   
5   import org.dbunit.DatabaseUnitException;
6   import org.dbunit.dataset.ITable;
7   import org.dbunit.dataset.datatype.DataType;
8   
9   /**
10   * Strategy for selecting a {@link ValueComparer} from a {@link Map} of them.
11   *
12   * @author Jeff Jensen
13   *
14   * @since 2.6.0
15   */
16  @FunctionalInterface
17  public interface ValueComparerSelector
18  {
19      /**
20       * @return The selected {@link ValueComparer} from the specified
21       *         valueComparers map.
22       * @throws DatabaseUnitException
23       */
24      ValueComparer select(ITable expectedTable, ITable actualTable, int rowNum,
25              String columnName, DataType dataType, Object expectedValue,
26              Object actualValue, Map<Object, ValueComparer> valueComparers)
27              throws DatabaseUnitException;
28  }