doc / ch.tutteli.atrium.reporting / IAssertionFormatterFacade

IAssertionFormatterFacade

interface IAssertionFormatterFacade

Responsible to call an appropriate IAssertionFormatter which supports formating a given IAssertion.

Functions

format

abstract fun format(assertion: IAssertion, sb: StringBuilder, assertionFilter: (IAssertion) -> Boolean): Unit

Formats the given assertion and appends the result to the given sb.

register

abstract fun register(assertionFormatterFactory: (IAssertionFormatterController) -> IAssertionFormatter): Unit

Uses the given assertionFormatterFactory to create and register an IAssertionFormatter -- which means the created IAssertionFormatter will be considered when an IAssertion shall be formatted.