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

DefaultAssertionFormatterController

class DefaultAssertionFormatterController : AssertionFormatterController (source)

Represents an AssertionFormatterController which does nothing special in addition but just the job of the controller :)

See Also

AssertionFormatterController

Constructors

<init>

DefaultAssertionFormatterController()

Represents an AssertionFormatterController which does nothing special in addition but just the job of the controller :)

Functions

format

fun format(assertion: Assertion, parameterObject: AssertionFormatterParameterObject): Unit

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

register

fun register(assertionFormatter: AssertionFormatter): Unit

Registers the given assertionFormatter, which means it will be considered when an Assertion shall be formatted.

Inherited Functions

isExplanatoryAssertionGroup

open fun isExplanatoryAssertionGroup(assertion: Assertion): Boolean

Checks whether the given assertion is an AssertionGroup and if its type is an ExplanatoryAssertionGroupType.