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

TextNextLineAssertionPairFormatter

class TextNextLineAssertionPairFormatter : AssertionPairFormatter

Represents an AssertionPairFormatter formatter of assertion pairs -- which consists of a Translatable and a representation -- where it puts the translation on one line and the representation on the next line (including indentation as if the representation is a child).

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

Constructors

<init>

TextNextLineAssertionPairFormatter(objectFormatter: ObjectFormatter, translator: Translator)

Represents an AssertionPairFormatter formatter of assertion pairs -- which consists of a Translatable and a representation -- where it puts them on the same line in the form: translation: representation.

Functions

format

fun format(methodObject: AssertionFormatterMethodObject, translatable: Translatable, representation: Any): Unit

formatGroupHeader

fun formatGroupHeader(methodObject: AssertionFormatterMethodObject, assertionGroup: AssertionGroup, newMethodObject: AssertionFormatterMethodObject): Unit