The JavaDoc for AssertionFailedError() states the following.
Constructs an AssertionFailedError with no message, no cause, and no expected/actual values.
However, it actually creates an AssertionFailedError with an empty String as the message.
Deliverables
[x] Ensure that the AssertionFailedError default constructor does not set the message to an empty String but rather leaves it set to null (i.e., the default value in Throwable).
Overview
The JavaDoc for
AssertionFailedError()
states the following.However, it actually creates an
AssertionFailedError
with an empty String as themessage
.Deliverables
AssertionFailedError
default constructor does not set themessage
to an empty String but rather leaves it set tonull
(i.e., the default value inThrowable
).