doc / ch.tutteli.atrium / IAtriumFactory / newTextExplanatoryAssertionGroupFormatter

newTextExplanatoryAssertionGroupFormatter

abstract fun newTextExplanatoryAssertionGroupFormatter(bulletPoints: Map<Class<out IBulletPointIdentifier>, String>, assertionFormatterController: IAssertionFormatterController): IAssertionFormatter

Creates an IAssertionFormatter which is intended for text output (e.g. for the console) and formats IAssertionGroups of type IExplanatoryAssertionGroupType by creating an AssertionFormatterMethodObject which indicates that formatting its IAssertionGroup.assertions happens within an explanatory assertion group.

Parameters

bulletPoints - The bullet points used in reporting; will typically use the bullet point registered for IExplanatoryAssertionGroupType as prefix for each IAssertion in IAssertionGroup.assertions. assertionFormatterController - The controller used to steer the flow of the reporting.

Return
The newly created assertion formatter.