junit.framework.ComparisonFailure
Thrown when an assert equals for Strings failed.
Inspired by a patch from Alex Chaffee mailto:alex@purpletech.com
Summary
Public Constructors
Public Methods
fillInStackTrace,
getCause,
getLocalizedMessage,
getMessage,
getStackTrace,
initCause,
printStackTrace,
printStackTrace,
printStackTrace,
setStackTrace,
toString
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
ComparisonFailure(String message, String expected, String actual)
Constructs a comparison failure.
Parameters
message
| the identifying message or null |
expected
| the expected string value |
actual
| the actual string value
|
Public Methods
public
String
getMessage()
Returns "..." in place of common prefix and "..." in
place of common suffix between expected and actual.
Returns
- String The receiver's message.