doc / ch.tutteli.atrium.reporting.text.impl / TextListAssertionGroupFormatter

TextListAssertionGroupFormatter

class TextListAssertionGroupFormatter : TextListBasedAssertionGroupFormatter<ListAssertionGroupType> (source)

Represents an AssertionFormatter which formats AssertionGroups with a ListAssertionGroupType by using the given assertionPairFormatter to format the group header and uses the bullet point defined for ListAssertionGroupType as prefix for the AssertionGroup.assertions.

Its usage is intended for text output (e.g. to the console).

Constructors

<init>

TextListAssertionGroupFormatter(bulletPoints: Map<KClass<out BulletPointIdentifier>, String>, assertionFormatterController: AssertionFormatterController, assertionPairFormatter: AssertionPairFormatter)

Represents an AssertionFormatter which formats AssertionGroups with a ListAssertionGroupType by putting each assertion on an own line prefixed with a bullet point.

Inherited Functions

formatGroupHeaderAndGetChildParameterObject

open fun formatGroupHeaderAndGetChildParameterObject(assertionGroup: AssertionGroup, parameterObject: AssertionFormatterParameterObject): AssertionFormatterParameterObject

Formats the group header of the given assertionGroup (with type T) -- appends the result to the sb of the given parameterObject -- and returns the AssertionFormatterParameterObject which shall be used for the AssertionGroup.assertions.