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

AssertionFormatterControllerOption

interface AssertionFormatterControllerOption (source)

Provides options to create an AssertionFormatterController.

Properties

objectFormatter

abstract val objectFormatter: <ERROR CLASS>

The previously chosen ObjectFormatter.

translator

abstract val translator: <ERROR CLASS>

The previously chosen Translator.

Functions

withAssertionFormatterController

abstract fun withAssertionFormatterController(assertionFormatterController: <ERROR CLASS>): AssertionFormatterFacadeOption

Uses the given assertionFormatterController as custom AssertionFormatterController.

withDefaultAssertionFormatterController

abstract fun withDefaultAssertionFormatterController(): AssertionFormatterFacadeOption

Uses CoreFactory.newAssertionFormatterController as AssertionFormatterController.

Companion Object Functions

create

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

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.