Uses of Class
org.assertj.core.api.WritableAssertionInfo
-
Uses of WritableAssertionInfo in org.assertj.core.api
Modifier and TypeMethodDescriptionAbstractAssert.getWritableAssertionInfo()
Exposes theWritableAssertionInfo
used in the current assertion for better extensibility.
When writing your own assertion class, you can use the returnedWritableAssertionInfo
to change the error message and still keep the description set by the assertion user.Modifier and TypeMethodDescriptionstatic String
WritableAssertionInfo.mostRelevantDescriptionIn
(WritableAssertionInfo info, String newDescription)