doc / ch.tutteli.atrium.reporting / IAssertionFormatterController

IAssertionFormatterController

interface IAssertionFormatterController

Responsible to control the flow of reporting using registered IAssertionFormatters.

Functions

format

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

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

isExplanatoryAssertionGroup

open fun isExplanatoryAssertionGroup(assertion: IAssertion): Boolean

Checks whether the given assertion is an IAssertionGroup and if its type is a IExplanatoryAssertionGroupType.

register

abstract fun register(assertionFormatter: IAssertionFormatter): Unit

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

Companion Object Functions

noSuitableAssertionFormatterFound

fun noSuitableAssertionFormatterFound(assertion: IAssertion): Nothing