doc / ch.tutteli.atrium.assertions.basic.contains.builders / ContainsCheckerBuilder

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>
Deprecated: Use the interface Contains.CheckerOption instead; will be removed with 1.0.0

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

Parameters

T - The type of the AssertionPlant.subject.

S - The type of the current Contains.SearchBehaviour.

C - The type of the checkers in use (typically a sub interface of Contains.Checker).

B - The concrete type of the builder representing the entry point of the process of building a sophisticated contains assertion.

Inherited 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

CharSequenceContainsCheckerBuilder

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

The deprecated base class for builders which create CharSequenceContains.Checkers within the fluent API of a sophisticated contains assertion which was started with the given containsBuilder.

IterableContainsCheckerBuilder

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

The deprecated base class for builders which create IterableContains.Checkers within the fluent API of a sophisticated contains assertion which was started with the given containsBuilder.