doc / ch.tutteli.atrium.api.fluent.en_GB / Entry

Entry

class Entry<T : Any> : Group<(Expect<T>.() -> Unit)?> (source)

Parameter object to express a Group with a single identification lambda.

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

Parameters

assertionCreatorOrNull - The identification lambda identifying the entry where an entry is considered to be identified if it holds all Assertions the lambda creates. In case it is defined as null, then an entry is identified if it is null as well.

Constructors

<init>

Entry(assertionCreatorOrNull: (Expect<T>.() -> Unit)?)

Parameter object to express a Group with a single identification lambda.

Properties

assertionCreatorOrNull

val assertionCreatorOrNull: (Expect<T>.() -> Unit)?

The identification lambda identifying the entry where an entry is considered to be identified if it holds all Assertions the lambda creates. In case it is defined as null, then an entry is identified if it is null as well.

Functions

toList

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

Returns the members of the group as List.