|
JUnit-addons version 1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Error | +--junit.framework.AssertionFailedError | +--junitx.framework.AssertionFailedError
Similar to the official class but supports chained exceptions.
junitx.framework.Assert.fail(exception);
Constructor Summary | |
AssertionFailedError(java.lang.String message,
java.lang.Throwable cause)
Constructs a new throwable with the specified detail message and cause. |
|
AssertionFailedError(java.lang.Throwable cause)
Constructs a new throwable with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). |
Method Summary | |
java.lang.Throwable |
getCause()
Returns the cause of this throwable or null if the cause is nonexistent or unknown. |
void |
printStackTrace()
Prints this throwable and its backtrace to the standard error stream. |
void |
printStackTrace(java.io.PrintStream s)
Prints this throwable and its backtrace to the specified print stream. |
void |
printStackTrace(java.io.PrintWriter s)
Prints this throwable and its backtrace to the specified print writer. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AssertionFailedError(java.lang.Throwable cause)
cause
- the cause (which is saved for later retrieval by the
getCause() method). (A null value is permitted, and indicates that the
cause is nonexistent or unknown.)public AssertionFailedError(java.lang.String message, java.lang.Throwable cause)
message
- the detail message (which is saved for later retrieval by
the getMessage() method).cause
- the cause (which is saved for later retrieval by the
getCause() method). (A null value is permitted, and indicates that the
cause is nonexistent or unknown.)Method Detail |
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
Throwable.printStackTrace()
public void printStackTrace(java.io.PrintStream s)
printStackTrace
in class java.lang.Throwable
Throwable.printStackTrace(PrintStream)
public void printStackTrace(java.io.PrintWriter s)
printStackTrace
in class java.lang.Throwable
s
- PrintWriter to use for outputThrowable.printStackTrace(PrintWriter)
|
JUnit-addons version 1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |