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

AtriumErrorAdjusterOption

interface AtriumErrorAdjusterOption : AtriumErrorAdjusterCommonOption<ReporterOption> (source)

Provides options to create an AtriumErrorAdjusterOption.

Properties

assertionFormatterFacade

abstract val assertionFormatterFacade: <ERROR CLASS>

The previously chosen AssertionFormatterFacade.

Functions

withCustomReporter

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

withDefaultAtriumErrorAdjusters

open fun withDefaultAtriumErrorAdjusters(): ReporterOption

Uses withMultipleAdjusters and applies withRemoveRunnerAtriumErrorAdjuster and withRemoveAtriumFromAtriumErrorAdjuster -- the default configuration might change in the future.

withMultipleAdjusters

abstract fun withMultipleAdjusters(configure: MultipleAdjustersOption.() -> Unit): ReporterOption

Uses the AtriumErrorAdjuster which are defined via the configure lambda.

withNoOpAtriumErrorAdjuster

abstract fun withNoOpAtriumErrorAdjuster(): ReporterOption

Uses an AtriumErrorAdjuster which does not adjust a given AtriumError but functions as an identity function.

withOnlyFailureReporter

abstract fun withOnlyFailureReporter(): ReporterBuilderFinalStep

Inherited Functions

withAtriumErrorAdjuster

abstract fun withAtriumErrorAdjuster(adjuster: <ERROR CLASS>): R

Uses the given AtriumErrorAdjuster as custom AtriumErrorAdjuster.

withRemoveAtriumFromAtriumErrorAdjuster

abstract fun withRemoveAtriumFromAtriumErrorAdjuster(): R

Uses an AtriumErrorAdjuster which removes stackBacktrace frames of Atrium from a given AtriumError.

withRemoveRunnerAtriumErrorAdjuster

abstract fun withRemoveRunnerAtriumErrorAdjuster(): R

Uses an AtriumErrorAdjuster which removes stackBacktrace frames of test runners from a given AtriumError.

Companion Object Functions

create

fun create(assertionFormatterFacade: <ERROR CLASS>): AtriumErrorAdjusterOption

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.