doc / ch.tutteli.atrium.assertions.iterable.contains.builders / IterableContainsCheckerBuilder

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.

Parameters

T - The input type of the search. S - The search behaviour which should be applied for the input of the search.

Constructors

<init>

IterableContainsCheckerBuilder(containsBuilder: 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.

Inherited 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.

Inherited Functions

addAssertion

fun addAssertion(assertion: IAssertion): IAssertionPlant<T>

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

Extension Functions

eintraege

fun <E : Any, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.eintraege(assertionCreator: IAssertionPlant<E>.() -> Unit, vararg otherAssertionCreators: IAssertionPlant<E>.() -> Unit): IAssertionPlant<T>

Finishes the specification of the sophisticated contains assertion where an entry shall be searched which holds all assertions assertionCreator might create and search for entries which hold (one by one) the assertions created by the otherAssertionCreators.

eintrag

fun <E : Any, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.eintrag(assertionCreator: IAssertionPlant<E>.() -> Unit): IAssertionPlant<T>

Finishes the specification of the sophisticated contains assertion where an entry shall be searched which holds all assertions assertionCreator might create.

entries

fun <E : Any, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.entries(assertionCreator: IAssertionPlant<E>.() -> Unit, vararg otherAssertionCreators: IAssertionPlant<E>.() -> Unit): IAssertionPlant<T>

Finishes the specification of the sophisticated contains assertion where an entry shall be searched which holds all assertions assertionCreator might create and search for entries which hold (one by one) the assertions created by the otherAssertionCreators.

entry

fun <E : Any, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.entry(assertionCreator: IAssertionPlant<E>.() -> Unit): IAssertionPlant<T>

Finishes the specification of the sophisticated contains assertion where an entry shall be searched which holds all assertions assertionCreator might create.

object

fun <E, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.object(expected: E): IAssertionPlant<T>

Finishes the specification of the sophisticated contains assertion where the expected object shall be searched within the Iterable.

objects

fun <E, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.objects(expected: E, vararg otherExpected: E): IAssertionPlant<T>

Finishes the specification of the sophisticated contains assertion where the expected object as well as the otherExpected objects shall be searched within the iterable.

objekt

fun <E, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.objekt(expected: E): IAssertionPlant<T>

Finishes the specification of the sophisticated contains assertion where the expected object shall be searched within the Iterable.

objekte

fun <E, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.objekte(expected: E, vararg otherExpected: E): IAssertionPlant<T>

Finishes the specification of the sophisticated contains assertion where the expected object as well as the otherExpected objects shall be searched within the iterable.

value

fun <E, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.value(expected: E): IAssertionPlant<T>

Finishes the specification of the sophisticated contains assertion where the expected value shall be searched within the Iterable.

values

fun <E, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.values(expected: E, vararg otherExpected: E): IAssertionPlant<T>

Finishes the specification of the sophisticated contains assertion where the expected value as well as the otherExpected values shall be searched within the Iterable.

wert

fun <E, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.wert(expected: E): IAssertionPlant<T>

Finishes the specification of the sophisticated contains assertion where the expected value shall be searched within the Iterable.

werte

fun <E, T : Iterable<E>> IterableContainsCheckerBuilder<E, T, IterableContainsInAnyOrderSearchBehaviour>.werte(expected: E, vararg otherExpected: E): IAssertionPlant<T>

Finishes the specification of the sophisticated contains assertion where the expected value as well as the otherExpected values shall be searched within the Iterable.

Inheritors

IterableContainsAtLeastCheckerBuilderBase

abstract class IterableContainsAtLeastCheckerBuilderBase<E, T : Iterable<E>, S : ISearchBehaviour> : IterableContainsCheckerBuilder<E, T, S>

The base class for builders which create a contains at least check within the fluent API of a sophisticated contains assertion for Iterable.

IterableContainsAtMostCheckerBuilderBase

abstract class IterableContainsAtMostCheckerBuilderBase<E, T : Iterable<E>, S : ISearchBehaviour> : IterableContainsCheckerBuilder<E, T, S>

The base class for builders which create a contains at least once but at most check within the fluent API of a sophisticated contains assertion for Iterable.

IterableContainsButAtMostCheckerBuilderBase

abstract class IterableContainsButAtMostCheckerBuilderBase<E, T : Iterable<E>, S : ISearchBehaviour> : IterableContainsCheckerBuilder<E, T, S>

The base class for builders which create the second step of a contains at least but at most check within the fluent API of a sophisticated contains assertion for Iterable.

IterableContainsExactlyCheckerBuilderBase

abstract class IterableContainsExactlyCheckerBuilderBase<E, T : Iterable<E>, S : ISearchBehaviour> : IterableContainsCheckerBuilder<E, T, S>

The base class for builders which create a contains exactly check within the fluent API of a sophisticated contains assertion for Iterable.

IterableContainsNoOpCheckerBuilder

class IterableContainsNoOpCheckerBuilder<E, T : Iterable<E>, S : ISearchBehaviour> : IterableContainsCheckerBuilder<E, T, S>

Represents a "no IIterableContains.IChecker" option, meaning no checker shall be applied to a search result.

IterableContainsNotOrAtMostCheckerBuilderBase

abstract class IterableContainsNotOrAtMostCheckerBuilderBase<E, T : Iterable<E>, S : ISearchBehaviour> : IterableContainsCheckerBuilder<E, T, S>

The base class for builders which create a contains not or at most check within the fluent API of a sophisticated contains assertion for Iterable.