doc / ch.tutteli.atrium.domain.builders.reporting / ExpectOptions

ExpectOptions

data class ExpectOptions<T> (source)
Deprecated: Use RootExpectOptions instead; will be removed latest with 0.17.0 (maybe earlier)

Additional (non-mandatory) options for the ExpectBuilder to create an Expect.

Constructors

<init>

ExpectOptions(assertionVerb: Translatable? = null, representationInsteadOfSubject: ((T) -> Any)? = null, reporter: Reporter? = null)

Additional (non-mandatory) options for the ExpectBuilder to create an Expect.

Properties

assertionVerb

val assertionVerb: Translatable?

Defines a custom assertion verb if not null.

reporter

val reporter: Reporter?

Defines a custom reporter if not null.

representationInsteadOfSubject

val representationInsteadOfSubject: ((T) -> Any)?

Defines a custom representation based on a present subject if not null.

Functions

merge

fun merge(options: ExpectOptions<T>): ExpectOptions<T>

Merges the given options with this object creating a new ExpectOptions where defined properties in options will have precedence over properties defined in this instance.

toRootExpectOptions

fun toRootExpectOptions(): RootExpectOptions<T>