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

MultipleAdjustersOption

interface MultipleAdjustersOption : AtriumErrorAdjusterCommonOption<Unit> (source)

Provides options to combine multiple AtriumErrorAdjusters.

Properties

adjusters

abstract val adjusters: List<<ERROR CLASS>>

Functions

withAtriumErrorAdjuster

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

Uses the given AtriumErrorAdjuster as custom AtriumErrorAdjuster.

withRemoveAtriumFromAtriumErrorAdjuster

abstract fun withRemoveAtriumFromAtriumErrorAdjuster(): Unit

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

withRemoveRunnerAtriumErrorAdjuster

abstract fun withRemoveRunnerAtriumErrorAdjuster(): Unit

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

Companion Object Functions

create

fun create(): MultipleAdjustersOption

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.