atrium-core-impl-robstoll-lib / ch.tutteli.atrium.reporting / InvisibleAssertionGroupFormatter

InvisibleAssertionGroupFormatter

class InvisibleAssertionGroupFormatter : NoSpecialChildFormattingSingleAssertionGroupTypeFormatter<InvisibleAssertionGroupType>

Represents an AssertionFormatter which formats AssertionGroups with an InvisibleAssertionGroupType or rather does not format them but only passes on the given AssertionFormatterMethodObject as child-AssertionFormatterMethodObject for the formatting of 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.

Constructors

<init>

InvisibleAssertionGroupFormatter(assertionFormatterController: AssertionFormatterController)

Represents an AssertionFormatter which formats AssertionGroups with an InvisibleAssertionGroupType by neglecting AssertionGroup.name and AssertionGroup.subject and passes on the given AssertionFormatterMethodObject which is used to format AssertionGroup.assertions.

Functions

formatGroupHeaderAndGetChildMethodObject

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.

Inherited Functions

formatGroupAssertions

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.