atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.creating.changers / FeatureOptions

FeatureOptions

data class FeatureOptions<R> (source)

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

Constructors

<init>

FeatureOptions(description: <ERROR CLASS>? = null, representationInsteadOfFeature: ((R) -> Any)? = null)

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

Properties

description

val description: <ERROR CLASS>?

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: FeatureOptions<R>): FeatureOptions<R>

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

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.