doc / ch.tutteli.atrium.api.infix.en_GB.creating.map / KeyWithCreator

KeyWithCreator

data class KeyWithCreator<out K, V>

Parameter object which combines an key of type K with an assertionCreator which defines assertions for a resulting feature of type V.

Use the function key(...) { ... } to create this representation where the first parameter corresponds to the key and the second is the assertionCreator

Since
0.10.0

Constructors

<init>

KeyWithCreator(key: K, assertionCreator: Expect<V>.() -> Unit)

Parameter object which combines an key of type K with an assertionCreator which defines assertions for a resulting feature of type V.

Properties

assertionCreator

val assertionCreator: Expect<V>.() -> Unit

key

val key: K