doc / ch.tutteli.atrium.reporting / ReporterBuilder / AssertionFormatterOptions

AssertionFormatterOptions

class AssertionFormatterOptions

Provides options to register AssertionFormatters to the chosen AssertionFormatterFacade.

See Also

AssertionFormatterFacadeOptions

Constructors

<init>

AssertionFormatterOptions(assertionFormatterFacade: AssertionFormatterFacade, objectFormatter: ObjectFormatter, translator: Translator)

Provides options to register AssertionFormatters to the chosen AssertionFormatterFacade.

Functions

withAssertionFormatter

fun withAssertionFormatter(assertionFormatterFactory: (AssertionFormatterController) -> AssertionFormatter): ReporterBuilder

Uses the given assertionFormatterFactory to create and register an AssertionFormatter to the assertionFormatterFacade.

withSameLineTextAssertionFormatter

fun withSameLineTextAssertionFormatter(vararg bulletPoints: <ERROR CLASS><Class<out BulletPointIdentifier>, String>): ReporterBuilder

Uses AtriumFactory.registerSameLineTextAssertionFormatterCapabilities to register AssertionFormatter to the assertionFormatterFacade where the given bulletPoints can be used to customise the predefined bullet points.