doc / ch.tutteli.atrium / IAtriumFactory / newTextFallbackAssertionFormatter

newTextFallbackAssertionFormatter

abstract fun newTextFallbackAssertionFormatter(bulletPoints: Map<Class<out IBulletPointIdentifier>, String>, assertionFormatterController: IAssertionFormatterController, objectFormatter: IObjectFormatter, translator: ITranslator): IAssertionFormatter

Creates an IAssertionFormatter 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 IAssertion.

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

Parameters

bulletPoints - The bullet points used in reporting; will typically use the bullet point registered for RootAssertionGroupType as prefix for each IAssertion in IAssertionGroup.assertions. assertionFormatterController - The controller used to steer the flow of the reporting. objectFormatter - The formatter which is used to format objects other than IAssertions. translator - The translator which is used to translate ITranslatable such as IBasicAssertion.description.

Return
The newly created assertion formatter.