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

AssertionFormatterFacadeOption

interface AssertionFormatterFacadeOption (source)

Provides options to create an AssertionFormatterFacade.

Properties

assertionFormatterController

abstract val assertionFormatterController: <ERROR CLASS>

The previously chosen AssertionFormatterController

objectFormatter

abstract val objectFormatter: <ERROR CLASS>

The previously chosen ObjectFormatter

translator

abstract val translator: <ERROR CLASS>

The previously chosen Translator

Functions

withAssertionFormatterFacade

abstract fun withAssertionFormatterFacade(factory: (<ERROR CLASS>) -> <ERROR CLASS>): AssertionPairFormatterOption

Uses the given factory to build a custom AssertionFormatterFacade.

withDefaultAssertionFormatterFacade

abstract fun withDefaultAssertionFormatterFacade(): AssertionPairFormatterOption

Uses CoreFactory.newAssertionFormatterFacade as AssertionFormatterFacade.

Companion Object Functions

create

fun create(assertionFormatterController: <ERROR CLASS>, objectFormatter: <ERROR CLASS>, translator: <ERROR CLASS>): AssertionFormatterFacadeOption

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.