public class AssertionFailedError
extends junit.framework.AssertionFailedError
junitx.framework.Assert.fail(exception);
Constructor and Description |
---|
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).
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.)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)
Copyright © ${project.year} ${project.holder}. All Rights Reserved.