public class ComparisonFailure extends AssertionFailedError
Constructor and Description |
---|
ComparisonFailure(String message,
String expected,
String actual)
Constructs a comparison failure.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public String getMessage()
getMessage
in class Throwable
Throwable.getMessage()
public String getActual()
public String getExpected()
Copyright © 2002–2022 JUnit. All rights reserved.