doc / ch.tutteli.atrium.logic.creating.basic.contains / Contains / Checker

Checker

interface Checker (source)

Represents a check for the search result such as: the object is contained exactly once in the input of the search.

It provides the method createAssertion which creates an Assertion representing this check.

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

Checker

interface Checker : Contains.Checker

Represents a check for the search result such as: the object is contained exactly once in the input of the search.

Checker

interface Checker : Contains.Checker

Represents a check for the search result such as: the object is contained exactly once in the input of the search.

Checker

interface Checker : Contains.Checker

Represents a check for the search result such as: the object is contained exactly once in the input of the search.

ContainsChecker

abstract class ContainsChecker : Contains.Checker

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.

WithTimesChecker

interface WithTimesChecker : Contains.Checker

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