doc / ch.tutteli.atrium.domain.creating.basic.contains / Contains / CheckerOption

CheckerOption

interface CheckerOption<out T : Any, out S : Contains.SearchBehaviour, out C : Contains.Checker, out B : Contains.Builder<T, S>>

The step of choosing/defining Checkers.

Properties

checkers

abstract val checkers: List<C>

Contains all Checkers which should be applied to the search result.

containsBuilder

abstract val containsBuilder: B

The previously chosen Builder, containing inter alia the SubjectProvider to which the resulting Assertion shall be added.

Extension Functions

addAssertion

fun <T : Any, B : Contains.Builder<T, *>> Contains.CheckerOption<T, *, *, B>.addAssertion(assertion: Assertion): Expect<T>

Helper method which simplifies adding assertions to the assertion container which itself is stored in Contains.CheckerOption.containsBuilder.

addAssertionForAssert

fun <T : Any, B : Contains.Builder<T, *>> Contains.CheckerOption<T, *, *, B>.addAssertionForAssert(assertion: Assertion): Assert<T>

Helper method which simplifies adding assertions to the assertion container which itself is stored in Contains.CheckerOption.containsBuilder.

Inheritors

CheckerOption

interface CheckerOption<out T : CharSequence, out S : CharSequenceContains.SearchBehaviour> : Contains.CheckerOption<T, S, CharSequenceContains.Checker, CharSequenceContains.Builder<T, S>>

The step of choosing/defining Checkers.

CheckerOption

interface CheckerOption<out E, out T : Iterable<E>, out S : IterableContains.SearchBehaviour> : Contains.CheckerOption<T, S, IterableContains.Checker, IterableContains.Builder<E, T, S>>

The step of choosing/defining Checkers.

ContainsCheckerBuilder

interface ContainsCheckerBuilder<out T : Any, out S : Contains.SearchBehaviour, out C : Contains.Checker, out B : Contains.Builder<T, S>> : Contains.CheckerOption<T, S, C, B>

Represents the deprecated base class for builders representing a checking step in the process of building a sophisticated contains assertion.