TextSameLineAssertionPairFormatter

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.

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

Parameters

objectFormatter

Used to format objects such as DescriptiveAssertion.representation.

translator

Constructors

Link copied to clipboard
constructor(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

Link copied to clipboard
open override fun format(parameterObject: AssertionFormatterParameterObject, translatable: Translatable, representation: Any)

Formats the assertion pair consisting of the given translatable and the given representation and appends the result to the sb of the given parameterObject.

Link copied to clipboard
open override fun formatGroupHeader(parameterObject: AssertionFormatterParameterObject, assertionGroup: AssertionGroup, newParameterObject: AssertionFormatterParameterObject)

Formats the header (AssertionGroup.description and AssertionGroup.representation) of the given assertionGroup and appends the result to the sb of the given parameterObject.