org.dbunit.assertion
Class DefaultFailureHandler.DefaultFailureFactory
java.lang.Object
org.dbunit.assertion.DefaultFailureHandler.DefaultFailureFactory
- All Implemented Interfaces:
- FailureFactory
- Enclosing class:
- DefaultFailureHandler
public static class DefaultFailureHandler.DefaultFailureFactory
- extends java.lang.Object
- implements FailureFactory
Default failure factory which returns DBUnits own assertion error instances.
- Since:
- 2.4.0
- Version:
- $Revision: 872 $ $Date: 2008-11-08 16:45:52 +0100 (sab, 08 nov 2008) $
- Author:
- gommma (gommma AT users.sourceforge.net), Last changed by: $Author: gommma $
|
Method Summary |
java.lang.Error |
createFailure(java.lang.String message)
|
java.lang.Error |
createFailure(java.lang.String message,
java.lang.String expected,
java.lang.String actual)
Creates a new failure object which can have different types, depending on
the testing framework you are currently using (e.g. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultFailureHandler.DefaultFailureFactory
public DefaultFailureHandler.DefaultFailureFactory()
createFailure
public java.lang.Error createFailure(java.lang.String message,
java.lang.String expected,
java.lang.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 failureexpected - The expected resultactual - 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 java.lang.Error createFailure(java.lang.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
Copyright © 2002-2010. All Rights Reserved.