doc / ch.tutteli.atrium.core / CoreFactoryCommon / newTextFallbackAssertionFormatter

newTextFallbackAssertionFormatter

abstract fun newTextFallbackAssertionFormatter(bulletPoints: Map<KClass<out BulletPointIdentifier>, String>, assertionFormatterController: AssertionFormatterController, objectFormatter: ObjectFormatter, translator: Translator): AssertionFormatter (source)
Deprecated: Open an issue in case you used this; Will be removed with 0.17.0

Creates an AssertionFormatter which is intended for text output (e.g. for the console) and serves as fallback if no other formatter is able to format a given Assertion.

Typically this includes the formatting of the AssertionGroup with a RootAssertionGroupType.

Parameters

bulletPoints - The bullet points used in reporting; will typically use the bullet point registered for RootAssertionGroupType as prefix for each Assertion in AssertionGroup.assertions.

assertionFormatterController - The controller used to steer the flow of the reporting.

objectFormatter - The formatter which is used to format objects other than Assertions.

translator - The translator which is used to translate Translatable such as DescriptiveAssertion.description.

Return
The newly created assertion formatter.