junit.framework.AssertionFailedError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of reactor-junit4 Show documentation
Show all versions of reactor-junit4 Show documentation
JUnit is a unit testing framework for Java, created by Erich Gamma and Kent Beck.
The newest version!
package junit.framework;
/**
* Thrown when an assertion failed.
*/
public class AssertionFailedError extends AssertionError {
private static final long serialVersionUID = 1L;
/**
* Constructs a new AssertionFailedError without a detail message.
*/
public AssertionFailedError() {
}
/**
* Constructs a new AssertionFailedError with the specified detail message.
* A null message is replaced by an empty String.
* @param message the detail message. The detail message is saved for later
* retrieval by the {@code Throwable.getMessage()} method.
*/
public AssertionFailedError(String message) {
super(defaultString(message));
}
private static String defaultString(String message) {
return message == null ? "" : message;
}
}