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

entries

fun <E : Any, T : Iterable<E?>> <ERROR CLASS><E?, T, <ERROR CLASS>>.entries(assertionCreatorOrNull: (<ERROR CLASS><E>.() -> Unit)?, vararg otherAssertionCreatorsOrNulls: (<ERROR CLASS><E>.() -> Unit)?): <ERROR CLASS><T> (source)

Finishes the specification of the sophisticated contains assertion where an entry shall be searched which either holds all assertions assertionCreatorOrNull creates or needs to be null in case assertionCreatorOrNull is defined as null -- likewise an entry (can be the same) is searched for each of the otherAssertionCreatorsOrNulls.

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.

otherAssertionCreatorsOrNulls - Additional identification lambdas which each identify (separately) an entry which we are looking for (see assertionCreatorOrNull for more information).

Exceptions

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

Return
An Expect for the current subject of the assertion.