doc / ch.tutteli.atrium.creating / FeatureExpectOptions

FeatureExpectOptions

data class FeatureExpectOptions<R> (source)

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

Constructors

<init>

FeatureExpectOptions(description: Translatable? = null, representationInsteadOfFeature: ((R) -> Any)? = null)

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

Properties

description

val description: Translatable?

Defines a custom description if not null.

representationInsteadOfFeature

val representationInsteadOfFeature: ((R) -> Any)?

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

Functions

merge

fun merge(options: FeatureExpectOptions<R>): FeatureExpectOptions<R>

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