|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.maven.surefire.util.NestedRuntimeException
org.apache.maven.surefire.assertion.SurefireAssertionFailedException
org.apache.maven.surefire.assertion.SurefireComparisonFailureException
public class SurefireComparisonFailureException
Thrown when an assertion equals for Strings failed.
Inspired by a patch from Alex Chaffee mailto:alex@purpletech.com
Constructor Summary | |
---|---|
SurefireComparisonFailureException(java.lang.String message,
java.lang.String expected,
java.lang.String actual)
Constructs a comparison failure. |
Method Summary | |
---|---|
java.lang.String |
getMessage()
Returns "..." in place of common prefix and "..." in place of common suffix between expected and actual. |
Methods inherited from class org.apache.maven.surefire.util.NestedRuntimeException |
---|
contains, getCause, getRootCause, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SurefireComparisonFailureException(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 valueMethod Detail |
---|
public java.lang.String getMessage()
getMessage
in class NestedRuntimeException
Throwable.getMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |