junit.framework
Class ComparisonFailure
public class ComparisonFailure
Thrown when an assert equals for Strings failed.
Inspired by a patch from Alex Chaffee mailto:alex@purpletech.com
ComparisonFailure(String message, String expected, String actual)- Constructs a comparison failure.
|
String | getActual()- Gets the actual string value
|
String | getExpected()- Gets the expected string value
|
String | getMessage()- Returns "..." in place of common prefix and "..." in
place of common suffix between expected and actual.
|
ComparisonFailure
public ComparisonFailure(String message,
String expected,
String actual) Constructs a comparison failure.
message - the identifying message or nullexpected - the expected string valueactual - the actual string value
getActual
public String getActual()
Gets the actual string value
getExpected
public String getExpected()
Gets the expected string value
- the expected string value
getMessage
public String getMessage()
Returns "..." in place of common prefix and "..." in
place of common suffix between expected and actual.
java.lang.Throwable.getMessage()