atrium-api-cc-en_GB-jvm / ch.tutteli.atrium.api.cc.en_GB / entry

entry

fun <E : Any, T : Iterable<E?>> <ERROR CLASS><E?, T, <ERROR CLASS>>.entry(assertionCreatorOrNull: (<ERROR CLASS><E>.() -> Unit)?): <ERROR CLASS><T>
Deprecated: Switch from api-cc-en_GB to api-fluent-en_GB; will be removed with 1.0.0

Finishes the specification of the sophisticated contains assertion where an entry shall be searched which either holds all assertions assertionCreatorOrNull might create or needs to be null in case assertionCreatorOrNull is defined as null.

Delegates to entries(assertionCreatorOrNull).

Parameters

assertionCreatorOrNull - The identification lambda which creates the assertions which the entry we are looking for has to hold; or in other words, the function which defines whether an entry is the one we are looking for or not. In case it is defined as null, then an entry is identified if it is null as well.

Exceptions

AssertionError - Might throw an AssertionError if the assertion made is not correct.

Return
The AssertionPlant for which the assertion was built to support a fluent API.