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

ObjectFormatterOption

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

Provides options to create an ObjectFormatter.

Properties

translator

abstract val translator: Translator

The previously chosen Translator.

Functions

withDetailedObjectFormatter

abstract fun withDetailedObjectFormatter(): AssertionFormatterControllerOption

Uses CoreFactory.newDetailedObjectFormatter as ObjectFormatter.

withObjectFormatter

abstract fun withObjectFormatter(factory: (Translator) -> ObjectFormatter): AssertionFormatterControllerOption

Uses the given factory to build a custom ObjectFormatter.

Companion Object Functions

create

fun create(translator: Translator): ObjectFormatterOption