ContainsChecker
Represents a base class for Contains.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.
It further checks that times is bigger than 0 (throws an IllegalArgumentException otherwise) and additionally suggest to use a different function if times is zero.
Parameters
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.
The function which should be used instead of wrongCall
when times is zero.
The function call which was used and should not be used if times is zero.
Throws
In case times is smaller than 1.
Inheritors
Properties
Functions
Creates an Assertion representing this check based on the given foundNumberOfTimes which is the result of the search.