atrium-api-cc-en_UK / ch.tutteli.atrium.api.cc.en_UK / ch.tutteli.atrium.assertions.iterable.contains.builders.IterableContainsBuilder / atLeast

atLeast

fun <E, T : Iterable<E>> IterableContainsBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.atLeast(times: Int): IterableContainsAtLeastCheckerBuilder<E, T>

Restricts a contains assertion by specifying that the number of occurrences of the entry which we are looking for, occurs at least number of times within the Iterable.

Parameters

times - The number which the check will compare against the actual number of times an expected entry is found in the Iterable.

Exceptions

IllegalArgumentException - In case times is smaller than zero. IllegalArgumentException - In case times equals to zero; use containsNot instead.

Return
The newly created builder.