doc / ch.tutteli.atrium.api.cc.infix.en_GB / Entry

Entry

class Entry<in T : Any> : GroupWithoutNullableEntries<(Assert<T>.() -> Unit)?>, GroupWithNullableEntries<(Assert<T>.() -> Unit)?>
Deprecated: Switch from Assert to Expect; will be removed with 1.0.0 -- see https://github.com/robstoll/atrium/releases/tag/v0.12.0#migration for migration hints and scripts.

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

Parameters

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

Constructors

<init>

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

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

Properties

assertionCreatorOrNull

val assertionCreatorOrNull: (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. In case it is defined as null, then an entry is identified if it is null as well.

Functions

toList

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

Returns the members of the group as List.