doc / ch.tutteli.atrium.reporting.impl / AssertionFormatterControllerBasedFacade

AssertionFormatterControllerBasedFacade

class AssertionFormatterControllerBasedFacade : AssertionFormatterFacade (source)

Responsible to call an appropriate AssertionFormatter which supports formating a given Assertion -- it does so by delegating this responsibility to the specified assertionFormatterController.

Constructors

<init>

AssertionFormatterControllerBasedFacade(assertionFormatterController: AssertionFormatterController)

Responsible to call an appropriate AssertionFormatter which supports formating a given Assertion -- it does so by delegating this responsibility to the given assertionFormatterController.

Functions

format

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

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

register

fun register(assertionFormatterFactory: (AssertionFormatterController) -> AssertionFormatter): Unit

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