doc / ch.tutteli.atrium.reporting / IAssertionFormatterController / format

format

abstract fun format(assertion: IAssertion, methodObject: AssertionFormatterMethodObject): Unit

Finds a suitable IAssertionFormatter -- which was previously registered -- for the given assertion and formats it.

The methodObject allows to define an assertionFilter to filter out IAssertions (for instance, filter out messages which hold → see IAtriumFactory.newOnlyFailureReporter).

Parameters

assertion - The assertion which shall be formatted. methodObject - Used to share data between this IAssertionFormatterController and the registered IAssertionFormatters.

Exceptions

UnsupportedOperationException - if no suitable IAssertionFormatter is found.

See Also

AssertionFormatterMethodObject