Package org.dbunit.assertion
Class DbComparisonFailure
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
org.dbunit.assertion.DbComparisonFailure
- All Implemented Interfaces:
Serializable
Exception signaling a DbUnit assertion failure while comparing values.
Is used to avoid the direct dependency to any other testing framework.
- Since:
- 2.4.0
- Version:
- $Revision$ $Date$
- Author:
- gommma (gommma AT users.sourceforge.net), Last changed by: $Author$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
DbComparisonFailure
- Parameters:
reason- The reason for the comparison failureexpected- The expected valueactual- The actual value
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getReason
-
getExpected
-
getActual
-
toString
-
buildMessage
Creates a formatted message string from the given parameters- Parameters:
reason- The reason for an assertion or comparison failureexpected- The expected resultactual- The actual result- Returns:
- The formatted message
-