doc / ch.tutteli.atrium.logic.creating.basic.contains.checkers / WithTimesChecker

WithTimesChecker

interface WithTimesChecker : Contains.Checker (source)

Represents a checker which is based on the number of times a search criterion is found within the search input.

Properties

times

abstract val times: Int

The number which the check uses to compare against the actual number of times an expected search criterion is found in the search input.

Inherited Functions

createAssertion

abstract fun createAssertion(foundNumberOfTimes: Int): Assertion

Creates an Assertion representing this check based on the given foundNumberOfTimes which is the result of the search.

Inheritors

AtLeastChecker

interface AtLeastChecker : WithTimesChecker

Represents a check that an expected search criterion is contained at least times in the search input.

AtMostChecker

interface AtMostChecker : WithTimesChecker

Represents a check that an expected search criterion is contained at most times in the search input.

ExactlyChecker

interface ExactlyChecker : WithTimesChecker

Represents a check that an expected search criterion is contained exactly times in the search input.