public class ExpectTuplesFailure
extends org.junit.ComparisonFailure
ComparisonFailure
to allow better customization
of its results.
ErrorReport.getMessage()
is used for Throwable.getMessage()
ErrorReport.getExpectedMessage()
is used for the
expected
string in JUnit ErrorReport.getActualMessage()
is used for the
actual
string in JUnit ComparisonFailure
is not used directly, as it does not allow a
custom message, but will instead build a message itself. We override that
behavior here.Constructor and Description |
---|
ExpectTuplesFailure(ErrorReport report) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage() |
ErrorReport |
getReport()
get the report that caused this failure
|
public ExpectTuplesFailure(ErrorReport report)
public java.lang.String getMessage()
getMessage
in class org.junit.ComparisonFailure
public ErrorReport getReport()