doc / ch.tutteli.atrium.creating / RootExpectOptions

RootExpectOptions

data class RootExpectOptions<T> (source)

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

See atrium-logic for helper functions to create an instance for this. Core is kept simple on purpose because it is also used in other JVM languages than Kotlin.

Constructors

<init>

RootExpectOptions(expectationVerb: Translatable?, representationInsteadOfSubject: ((T) -> Any)?, componentFactoryContainer: ComponentFactoryContainer?)

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

Properties

assertionVerb

val assertionVerb: Translatable?

componentFactoryContainer

val componentFactoryContainer: ComponentFactoryContainer?

Defines a custom components.

expectationVerb

val expectationVerb: Translatable?

Defines a custom assertion verb 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 RootExpectOptions object creating a new RootExpectOptions where defined properties in options will have precedence over properties defined in this instance.