View Javadoc
1   package org.dbunit.assertion.comparer.value;
2   
3   import org.dbunit.DatabaseUnitException;
4   import org.dbunit.dataset.ITable;
5   import org.dbunit.dataset.datatype.DataType;
6   
7   /**
8    * {@link ValueComparer} implementation that verifies nothing and never fails;
9    * {@link #isExpected(ITable, ITable, int, String, DataType, Object, Object)}
10   * always returns true.
11   *
12   * @author jjensen
13   * @since 2.6.0
14   */
15  public class NeverFailsValueComparer extends ValueComparerTemplateBase
16  {
17      @Override
18      protected boolean isExpected(final ITable expectedTable,
19              final ITable actualTable, final int rowNum, final String columnName,
20              final DataType dataType, final Object expectedValue,
21              final Object actualValue) throws DatabaseUnitException
22      {
23          return true;
24      }
25  
26      @Override
27      protected String getFailPhrase()
28      {
29          return "";
30      }
31  }