doc / ch.tutteli.atrium.creating / RootExpectOptions

RootExpectOptions

data class RootExpectOptions<T>

Additional (non-mandatory) options to create a RootExpect.

Constructors

<init>

RootExpectOptions(assertionVerb: Translatable?, representationInsteadOfSubject: ((T) -> Any)?, reporter: Reporter?)

Additional (non-mandatory) options to create a RootExpect.

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: RootExpectOptions<T>): RootExpectOptions<T>

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