Class JUnitFailureFactory

java.lang.Object
org.dbunit.assertion.JUnitFailureFactory
All Implemented Interfaces:
FailureFactory

public class JUnitFailureFactory extends Object implements FailureFactory
Adapter that lets dbunit create JUnit failure objects.
Since:
2.4.0
Version:
$Revision$ $Date$
Author:
gommma (gommma AT users.sourceforge.net), Last changed by: $Author$
  • Constructor Details

    • JUnitFailureFactory

      public JUnitFailureFactory()
  • Method Details

    • createFailure

      public Error createFailure(String message, String expected, String actual)
      Description copied from interface: FailureFactory
      Creates a new failure object which can have different types, depending on the testing framework you are currently using (e.g. JUnit, TestNG, ...)
      Specified by:
      createFailure in interface FailureFactory
      Parameters:
      message - The reason for the failure
      expected - The expected result
      actual - The actual result
      Returns:
      The comparison failure object for this handler (can be JUnit or some other) which can be thrown on an assertion failure
    • createFailure

      public Error createFailure(String message)
      Specified by:
      createFailure in interface FailureFactory
      Parameters:
      message - The reason for the failure
      Returns:
      The assertion failure object for this handler (can be JUnit or some other) which can be thrown on an assertion failure