atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.reporting / ObjectFormatterOption

ObjectFormatterOption

interface ObjectFormatterOption (source)

Provides options to create an ObjectFormatter.

Properties

translator

abstract val translator: <ERROR CLASS>

The previously chosen Translator.

Functions

withDetailedObjectFormatter

abstract fun withDetailedObjectFormatter(): AssertionFormatterControllerOption

Uses CoreFactory.newDetailedObjectFormatter as ObjectFormatter.

withObjectFormatter

abstract fun withObjectFormatter(factory: (<ERROR CLASS>) -> <ERROR CLASS>): AssertionFormatterControllerOption

Uses the given factory to build a custom ObjectFormatter.

Companion Object Functions

create

fun create(translator: <ERROR CLASS>): ObjectFormatterOption

Extension Functions

asExpect

fun <T, A> A.asExpect(): <ERROR CLASS><T>
fun <T : Any, A> A.asExpect(assertionCreator: <ERROR CLASS><T>.() -> Unit): A

Turns Assert or AssertionPlantNullable into an Expect so that you can use new functionality which is not available on Assert/AssertionPlantNullable.