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

ContainsCheckerBuilder

abstract class ContainsCheckerBuilder<out T : Any, out S : SearchBehaviour, out C : Checker, out B : ContainsBuilder<T, S>>

Represents the 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.

Constructors

<init>

ContainsCheckerBuilder(containsBuilder: B)

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

Properties

checkers

abstract val checkers: List<C>

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

containsBuilder

val containsBuilder: B

The builder representing the entry point of the process of building a sophisticated contains assertion.

Functions

addAssertion

fun addAssertion(assertion: Assertion): AssertionPlant<T>

Helper method to simplify adding assertions to the plant which itself is stored in containsBuilder.

Inheritors

CharSequenceContainsCheckerBuilder

abstract class CharSequenceContainsCheckerBuilder<out T : CharSequence, out S : SearchBehaviour> : ContainsCheckerBuilder<T, S, Checker, CharSequenceContainsBuilder<T, S>>

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

IterableContainsCheckerBuilder

abstract class IterableContainsCheckerBuilder<out E, out T : Iterable<E>, out S : SearchBehaviour> : ContainsCheckerBuilder<T, S, Checker, IterableContainsBuilder<E, T, S>>

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