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

Entries

class Entries<in T : Any> : GroupWithoutNullableEntries<(Assert<T>.() -> Unit)?>, GroupWithNullableEntries<(Assert<T>.() -> Unit)?>, VarArgHelper<(Assert<T>.() -> Unit)?>
Deprecated: Switch from api-cc-en_GB to api-fluent-en_GB; will be removed with 1.0.0

Parameter object to express a Group of identification lambdas.

In case null is used for an 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 might create. In case it is defined as null, then an entry is identified if it is null as well.

otherAssertionCreatorsOrNulls - A variable amount of additional identification lambdas or nulls.

Constructors

<init>

Entries(assertionCreatorOrNull: (Assert<T>.() -> Unit)?, vararg otherAssertionCreatorsOrNulls: (Assert<T>.() -> Unit)?)

Parameter object to express a Group of identification lambdas.

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.

expected

val expected: (Assert<T>.() -> Unit)?

The first argument in the argument list T, vararg T

otherAssertionCreatorsOrNulls

vararg val otherAssertionCreatorsOrNulls: Array<(Assert<T>.() -> Unit)?>

A variable amount of additional identification lambdas or nulls.

otherExpected

val otherExpected: Array<(Assert<T>.() -> Unit)?>

The second argument in the argument list T, vararg T

Inherited Properties

mapArguments

open val mapArguments: ArgumentMapperBuilder<T>

Creates an ArgumentMapperBuilder which allows to map expected and otherExpected.

Functions

toList

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

Returns the members of the group as List.