Assertion Failed Error
AssertionFailedError is a common base class for test-related AssertionErrors.
In addition to a message and a cause, this class stores the expected and actual values of an assertion using the ValueWrapper type.
Author
Sam Brannen
Marc Philipp
Since
1.0
Author
Sam Brannen
Marc Philipp
Constructors
Constructs an AssertionFailedError with an empty message, no cause, and no expected/actual values.
Constructs an AssertionFailedError with a message, no cause, and no expected/actual values.
Constructs an AssertionFailedError with a message and a cause but without expected/actual values.
Constructs an AssertionFailedError with a message and expected/actual values but without a cause.
Constructs an AssertionFailedError with a message, expected/actual values, and a cause.
Properties
Returns the wrapped actual value if it is defined; otherwise null.
Returns the wrapped expected value if it is defined; otherwise null.
Returns true if an actual value was supplied via an appropriate constructor.
Returns true if an expected value was supplied via an appropriate constructor.