doc / ch.tutteli.atrium.assertions.basic.contains.checkers / ContainsChecker / <init>

<init>

ContainsChecker(times: Int, nameFunToUse: String, nameFunUsed: String)

Represents a base class for checkers which compare how many occurrences of an expected object are found in the input of the search, against how many times the check expect it to be contained.

Parameters

times - The number which the check uses to compare against the actual number of times an expected object is found in the input of the search. nameFunToUse - The function which should be used instead of nameFunUsed when times equals to zero. nameFunUsed - The function which was used and should not be used if times equals to zero.

Exceptions

IllegalArgumentException - In case times is smaller than 1.

Constructor
Represents a base class for checkers which compare how many occurrences of an expected object are found in the input of the search, against how many times the check expect it to be contained.