doc / ch.tutteli.atrium.api.infix.en_GB.creating / Entries

Entries

class Entries<T> : GroupWithoutNullableEntries<(Expect<T>.() -> Unit)?>, GroupWithNullableEntries<(Expect<T>.() -> Unit)?>, VarArgHelper<(Expect<T>.() -> Unit)?>

Parameter object to express a Group of identification lambdas.

It is also used to express (Expect<T>.() -> Unit)?, vararg (Expect<T>.() -> Unit)? at other places the infix-api.

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

Use the function entries({ ... }, ...) to create this representation.

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.

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

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.

expected

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

The first argument in the argument list T, vararg T

otherAssertionCreatorsOrNulls

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

A variable amount of additional identification lambdas or nulls.

otherExpected

val otherExpected: Array<(Expect<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<(Expect<T>.() -> Unit)?>

Returns the members of the group as List.