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

TextAssertionFormatterOptions

class TextAssertionFormatterOptions
Deprecated: Use the builder from package domain.builders.reporting; will be removed with 1.0.0

Provides options to register AssertionFormatters to the chosen AssertionFormatterFacade.

See Also

AssertionFormatterFacadeOptions

Constructors

<init>

TextAssertionFormatterOptions(options: ReporterBuilder.AssertionFormatterChosenOptions, assertionPairFormatter: AssertionPairFormatter)

Provides options to register AssertionFormatters to the chosen AssertionFormatterFacade.

Functions

withDefaultTextCapabilities

fun withDefaultTextCapabilities(vararg bulletPoints: Pair<Class<out BulletPointIdentifier>, String>): ReporterBuilder

Uses CoreFactory.registerTextAssertionFormatterCapabilities to register the default AssertionFormatters intended for text output -- using the defined assertionPairFormatter, AssertionFormatterChosenOptions.objectFormatter and AssertionFormatterChosenOptions.translator -- to the specified AssertionFormatterChosenOptions.assertionFormatterFacade where the given bulletPoints can be used to customise the predefined bullet points.

withTextAssertionFormatter

fun withTextAssertionFormatter(factory: (ReporterBuilder.AssertionFormatterChosenOptions) -> (AssertionFormatterController) -> AssertionFormatter, vararg otherFactories: (ReporterBuilder.AssertionFormatterChosenOptions) -> (AssertionFormatterController) -> AssertionFormatter): ReporterBuilder

Uses the given factory and otherFactories to create and register AssertionFormatters to the specified AssertionFormatterChosenOptions.assertionFormatterFacade.