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

ReporterOption

interface ReporterOption (source)

Provides options to finalise the building process, which means creating a Reporter.

Properties

assertionFormatterFacade

abstract val assertionFormatterFacade: <ERROR CLASS>

The previously chosen AssertionFormatterFacade.

atriumErrorAdjuster

abstract val atriumErrorAdjuster: <ERROR CLASS>

The previously chosen AtriumErrorAdjuster.

Functions

withCustomReporter

abstract fun withCustomReporter(factory: (<ERROR CLASS>, <ERROR CLASS>) -> <ERROR CLASS>): ReporterBuilderFinalStep

Uses the given factory to build a custom Reporter.

withOnlyFailureReporter

abstract fun withOnlyFailureReporter(): ReporterBuilderFinalStep

Uses CoreFactory.newOnlyFailureReporter as Reporter.

Companion Object Functions

create

fun create(assertionFormatterFacade: <ERROR CLASS>, atriumErrorAdjuster: <ERROR CLASS>): ReporterOption

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.