Package junit.framework
Class AssertionFailedError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- java.lang.AssertionError
-
- junit.framework.AssertionFailedError
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ComparisonFailure
public class AssertionFailedError extends java.lang.AssertionError
Thrown when an assertion failed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssertionFailedError()
Constructs a new AssertionFailedError without a detail message.AssertionFailedError(java.lang.String message)
Constructs a new AssertionFailedError with the specified detail message.
-
-
-
Constructor Detail
-
AssertionFailedError
public AssertionFailedError()
Constructs a new AssertionFailedError without a detail message.
-
AssertionFailedError
public AssertionFailedError(java.lang.String message)
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.
-
-