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 theWritableAssertionInfoused in the current assertion for better extensibility.
When writing your own assertion class, you can use the returnedWritableAssertionInfoto 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 StringWritableAssertionInfo.mostRelevantDescriptionIn(WritableAssertionInfo info, String newDescription)