doc / ch.tutteli.atrium.domain.creating.iterable.contains.checkers / CheckerFactory

CheckerFactory

interface CheckerFactory

Defines the minimum set of IterableContains.Checkers an implementation of the domain of Atrium has to provide.

Functions

newAtLeastChecker

abstract fun newAtLeastChecker(times: Int, nameContainsNotFun: String, atLeastCall: (Int) -> String): IterableContains.Checker

Creates an IterableContains.Checker which verifies that an expected entry is contained at least times in the Iterable.

newAtMostChecker

abstract fun newAtMostChecker(times: Int, nameContainsNotFun: String, atMostCall: (Int) -> String): IterableContains.Checker

Creates an IterableContains.Checker which verifies that an expected entry is contained at most times in the Iterable.

newExactlyChecker

abstract fun newExactlyChecker(times: Int, nameContainsNotFun: String, exactlyCall: (Int) -> String): IterableContains.Checker

Creates a IterableContains.Checker which verifies that an expected entry is contained exactly times in the Iterable.

newNotChecker

abstract fun newNotChecker(): IterableContains.Checker

Creates a IterableContains.Checker which verifies that an expected entry is not contained in the Iterable.