junit.framework
public class ComparisonFailure extends AssertionFailedError
| Constructor Summary | |
|---|---|
| ComparisonFailure(String message, String expected, String actual)
Constructs a comparison failure. | |
| Method Summary | |
|---|---|
| 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.
|
Parameters: message the identifying message or null expected the expected string value actual the actual string value
Returns: the actual string value
Returns: the expected string value
See Also: java.lang.Throwable#getMessage()