class TextIndentAssertionGroupFormatter : NoSpecialChildFormattingSingleAssertionGroupTypeFormatter<IndentAssertionGroupType>
Represents an AssertionFormatter which formats AssertionGroups with an IndentAssertionGroupType or rather creates a child-AssertionFormatterMethodObject which proposes to use the bullet point defined for IndentAssertionGroupType for the AssertionGroup.assertions.
It does not include a group header in its result or in other words, skips the first part of formatting an AssertionGroup as defined in AssertionFormatter.formatGroup.
Its usage is intended for text output (e.g. to the console).
TextIndentAssertionGroupFormatter(bulletPoints: Map<Class<out BulletPointIdentifier>, String>, assertionFormatterController: AssertionFormatterController)
Represents an AssertionFormatter which formats AssertionGroups with an IndentAssertionGroupType or rather creates a child-AssertionFormatterMethodObject which proposes to use the bullet point defined for IndentAssertionGroupType for the AssertionGroup.assertions. |
fun formatGroupHeaderAndGetChildMethodObject(assertionGroup: AssertionGroup, methodObject: AssertionFormatterMethodObject): AssertionFormatterMethodObject
Formats the group header of the given assertionGroup (with type T) -- appends the result to the sb of the given methodObject -- and returns the AssertionFormatterMethodObject which shall be used for the AssertionGroup.assertions. |
open fun formatGroupAssertions(formatAssertions: (AssertionFormatterMethodObject, (Assertion) -> Unit) -> Unit, childMethodObject: AssertionFormatterMethodObject): Unit
Formats the AssertionGroup.assertions -- has to call the given formatAssertions function in order that the AssertionFormatterController can steer the process. |