doc / ch.tutteli.atrium.api.cc.en_GB / NullableEntry

NullableEntry

class NullableEntry<in T : Any> : GroupWithNullableEntries<Assert<T>.() -> Unit> (source)

Parameter object to express a GroupWithNullableEntries with a single nullable identification lambda.

In case null is used for the identification lambda then it is expected that the corresponding entry is null as well.

Parameters

assertionCreator - The identification lambda identifying the entry where an entry is considered to be identified if it holds all Assertions the lambda might create or if it is null in case assertionCreator is defined as null.

Constructors

<init>

NullableEntry(assertionCreator: Assert<T>.() -> Unit)

Parameter object to express a GroupWithNullableEntries with a single nullable identification lambda.

Properties

assertionCreator

val assertionCreator: Assert<T>.() -> Unit

The identification lambda identifying the entry where an entry is considered to be identified if it holds all Assertions the lambda might create or if it is null in case assertionCreator is defined as null.

Functions

toList

fun toList(): List<Assert<T>.() -> Unit>