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

CheckerFactory

interface CheckerFactory (source)

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

Functions

newAtLeastChecker

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

Creates an CharSequenceContains.Checker which verifies that an expected object is contained at least times in the search input.

newAtMostChecker

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

Creates an CharSequenceContains.Checker which verifies that an expected object is contained at most times in the search input.

newExactlyChecker

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

Creates an CharSequenceContains.Checker which verifies that an expected object is contained exactly times in the search input.

newNotChecker

abstract fun newNotChecker(): CharSequenceContains.Checker

Creates an CharSequenceContains.Checker which verifies that an expected object is not contained in the search input.