doc / ch.tutteli.atrium.core / CoreFactoryCommon / newTextNextLineAssertionPairFormatter

newTextNextLineAssertionPairFormatter

abstract fun newTextNextLineAssertionPairFormatter(objectFormatter: ObjectFormatter, translator: Translator): AssertionPairFormatter (source)
Deprecated: Create it via TextAssertionPairFormatter.newNextLine(...); will be removed with 0.17.0

Creates an AssertionPairFormatter which is intended for text output (e.g. for the console) and puts assertion pairs on separate lines

As an example assert(10).toBe(9) results in the following error:

assert:
  10        (java.lang.Integer <934275857>)
◆ to be:
  9        (java.lang.Integer <1364913072>)

Parameters

objectFormatter - The formatter which is used to format objects other than Assertions.

translator - The translator which is used to translate Translatable such as DescriptiveAssertion.description.

Return
The newly created assertion formatter.