atrium-api-fluent-en_GB-jvm / ch.tutteli.atrium.api.fluent.en_GB / Entries

Entries

class Entries<T : Any> (source)

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 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.

Constructors

<init>

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

Parameter object to express a Group of identification lambdas.

Properties

assertionCreatorOrNull

val assertionCreatorOrNull: (<ERROR CLASS><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: (<ERROR CLASS><T>.() -> Unit)?

otherAssertionCreatorsOrNulls

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

A variable amount of additional identification lambdas or nulls.

otherExpected

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

Functions

toList

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