public class ComparisonFailure extends AssertionFailedError
Constructor and Description |
---|
ComparisonFailure(java.lang.String message,
java.lang.String expected,
java.lang.String actual)
Constructs a comparison failure.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActual()
Gets the actual string value
|
java.lang.String |
getExpected()
Gets the expected string value
|
java.lang.String |
getMessage()
Returns "..." in place of common prefix and "..." in
place of common suffix between expected and actual.
|
public ComparisonFailure(java.lang.String message, java.lang.String expected, java.lang.String actual)
message
- the identifying message or nullexpected
- the expected string valueactual
- the actual string valuepublic java.lang.String getMessage()
getMessage
in class java.lang.Throwable
Throwable.getMessage()
public java.lang.String getActual()
public java.lang.String getExpected()