doc / ch.tutteli.atrium.api.cc.de_CH / aberHoechstens

aberHoechstens

fun <T : CharSequence, S : CharSequenceContains.SearchBehaviour> AtLeastCheckerOption<T, S>.aberHoechstens(times: Int): ButAtMostCheckerOption<T, S> (source)
Deprecated: api-cc-de_CH is discontinued, switch to api-fluent-en_GB; will be removed with 1.0.0

Restricts a contains at least assertion by specifying that the number of occurrences of the value which we are looking for occurs at most number of times within the search input.

The resulting restriction will be a contains at least but at most assertion.

Parameters

times - The number which the check will compare against the number of times an expected value is found in the input of the search.

Exceptions

IllegalArgumentException - In case times is smaller than zero.

IllegalArgumentException - In case times equals to zero; use enthaeltNicht instead.

IllegalArgumentException - In case times of this at most restriction equals to the number of the at least restriction; use the genau restriction instead.

Return
The newly created builder.

fun <E, T : Iterable<E>, S : InAnyOrderSearchBehaviour> AtLeastCheckerOption<E, T, S>.aberHoechstens(times: Int): ButAtMostCheckerOption<E, T, S> (source)
Deprecated: api-cc-de_CH is discontinued, switch to api-fluent-en_GB; will be removed with 1.0.0

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

The resulting restriction will be a contains at least but at most assertion.

Parameters

times - The number which the check will compare against the 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 enthaeltNicht instead.

IllegalArgumentException - In case times of this at most restriction equals to the number of the at least restriction; use the genau restriction instead.

Return
The newly created builder.

fun <T : CharSequence, S : CharSequenceContains.SearchBehaviour> aberHoechstens(checkerBuilder: CharSequenceContainsAtLeastCheckerBuilder<T, S>, times: Int): CharSequenceContainsButAtMostCheckerBuilder<T, S> (source)
Deprecated: Use the extension fun `aberHoechstens`. This fun is only here to retain binary compatibility; will be removed with 1.0.0


fun <E, T : Iterable<E>> aberHoechstens(checkerBuilder: IterableContainsAtLeastCheckerBuilder<E, T>, times: Int): IterableContainsButAtMostCheckerBuilder<E, T> (source)
Deprecated: Use the extension fun `aberHoechstens` instead. This fun is only here to retain binary compatibility; will be removed with 1.0.0