Package junit.framework
Class AssertionFailedError
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
junit.framework.AssertionFailedError
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ComparisonFailure
Thrown when an assertion failed.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new AssertionFailedError without a detail message.AssertionFailedError
(String message) Constructs a new AssertionFailedError with the specified detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
AssertionFailedError
public AssertionFailedError()Constructs a new AssertionFailedError without a detail message. -
AssertionFailedError
Constructs a new AssertionFailedError with the specified detail message. A null message is replaced by an empty String.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
-
Method Details
-
defaultString
-