interface TextAssertionPairFormatter : AssertionPairFormatter
(source)
Marker interface for AssertionPairFormatter which are intended for text output, e.g. for terminal output.
abstract fun format(parameterObject: AssertionFormatterParameterObject, translatable: Translatable, representation: Any): Unit
Formats the assertion pair consisting of the given translatable and the given representation and appends the result to the sb of the given parameterObject. |
|
abstract fun formatGroupHeader(parameterObject: AssertionFormatterParameterObject, assertionGroup: AssertionGroup, newParameterObject: AssertionFormatterParameterObject): Unit
Formats the header (AssertionGroup.description and AssertionGroup.representation) of the given assertionGroup and appends the result to the sb of the given parameterObject. |
fun newNextLine(objectFormatter: ObjectFormatter, translator: Translator): TextAssertionPairFormatter |
|
fun newSameLine(objectFormatter: ObjectFormatter, translator: Translator): TextAssertionPairFormatter |
class TextNextLineAssertionPairFormatter : AssertionPairFormatter, TextAssertionPairFormatter
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). |
|
class TextSameLineAssertionPairFormatter : AssertionPairFormatter, TextAssertionPairFormatter
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: |