AssertionFormatterControllerBasedFacade

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

Parameters

assertionFormatterController

The controller used to control the flow of formatting.

Constructors

Link copied to clipboard
constructor(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

Link copied to clipboard
open override fun format(assertion: Assertion, sb: StringBuilder, assertionFilter: (Assertion) -> Boolean)

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

Link copied to clipboard
open override fun register(assertionFormatterFactory: (AssertionFormatterController) -> AssertionFormatter)

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