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

ObjectFormatterOption

interface ObjectFormatterOption

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