abstract fun format(assertion: Assertion, methodObject: AssertionFormatterMethodObject): Unit
Finds a suitable AssertionFormatter -- which was previously registered -- for the given assertion and formats it.
The methodObject allows to define an assertionFilter to filter out Assertions (for instance, filter out messages which hold → see IAtriumFactory.newOnlyFailureReporter). Moreover the controller should take into account whether the control flow AssertionFormatterMethodObject.isNotInDoNotFilterGroup or is in such group, in which case the filtering should not apply.
assertion
- The assertion which shall be formatted.
methodObject
- Used to share data between this AssertionFormatterController and the registered
AssertionFormatters.
UnsupportedOperationException
- if no suitable AssertionFormatter is found.
See Also