Uses of Class
org.assertj.core.api.WritableAssertionInfo
Packages that use WritableAssertionInfo
-
Uses of WritableAssertionInfo in org.assertj.core.api
Fields in org.assertj.core.api declared as WritableAssertionInfoMethods in org.assertj.core.api that return WritableAssertionInfoModifier 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.Methods in org.assertj.core.api with parameters of type WritableAssertionInfoModifier and TypeMethodDescriptionstatic String
WritableAssertionInfo.mostRelevantDescriptionIn
(WritableAssertionInfo info, String newDescription)