doc / ch.tutteli.atrium.domain.builders.reporting / AssertionPairFormatterOption

AssertionPairFormatterOption

interface AssertionPairFormatterOption (source)
Deprecated: Configure components via withOptions when creating an expectation verb instead; will be removed with 0.17.0

Provides options to create an AssertionPairFormatter.

Properties

options

abstract val options: AssertionFormatterChosenOptions

The so far chosen options which are relevant to create AssertionFormatters.

Functions

withTextAssertionPairFormatter

abstract fun withTextAssertionPairFormatter(factory: (ObjectFormatter, Translator) -> AssertionPairFormatter): TextAssertionFormatterOption

Uses the given factory to build a custom AssertionPairFormatter.

withTextNextLineAssertionPairFormatter

open fun withTextNextLineAssertionPairFormatter(): TextAssertionFormatterOption

Uses CoreFactory.newTextNextLineAssertionPairFormatter as AssertionPairFormatter.

withTextSameLineAssertionPairFormatter

open fun withTextSameLineAssertionPairFormatter(): TextAssertionFormatterOption

Uses CoreFactory.newTextSameLineAssertionPairFormatter as AssertionPairFormatter.

Companion Object Functions

create

fun create(assertionFormatterFacade: AssertionFormatterFacade, objectFormatter: ObjectFormatter, translator: Translator): AssertionPairFormatterOption
fun create(options: AssertionFormatterChosenOptions): AssertionPairFormatterOption