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

ContainsCheckerBuilder

abstract class ContainsCheckerBuilder<out T : Any, S : ISearchBehaviour, out C : IChecker, 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 IAssertionPlant.subject. S - The type of the current IContains.ISearchBehaviour. C - The type of the checkers in use (typically a sub interface of IContains.IChecker). 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 ICheckers 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: IAssertion): IAssertionPlant<T>

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

Inheritors

CharSequenceContainsCheckerBuilder

abstract class CharSequenceContainsCheckerBuilder<out T : CharSequence, S : ISearchBehaviour> : ContainsCheckerBuilder<T, S, IChecker, CharSequenceContainsBuilder<T, S>>

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

IterableContainsCheckerBuilder

abstract class IterableContainsCheckerBuilder<E, T : Iterable<E>, S : ISearchBehaviour> : ContainsCheckerBuilder<T, S, IChecker, IterableContainsBuilder<E, T, S>>

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