doc / ch.tutteli.atrium.domain.creating.iterable.contains.creators / IterableContainsAssertions

IterableContainsAssertions

interface IterableContainsAssertions

Defines the minimum set of contains assertion functions for Iterable, which an implementation of the domain of Atrium has to provide.

Functions

entriesInAnyOrder

abstract fun <E : Any, T : Iterable<E?>> entriesInAnyOrder(checkerOption: IterableContains.CheckerOption<E?, T, InAnyOrderSearchBehaviour>, assertionCreators: List<(Expect<E>.() -> Unit)?>): Assertion

entriesInAnyOrderOnly

abstract fun <E : Any, T : Iterable<E?>> entriesInAnyOrderOnly(builder: IterableContains.Builder<E?, T, InAnyOrderOnlySearchBehaviour>, assertionCreators: List<(Expect<E>.() -> Unit)?>): Assertion

entriesInAnyOrderOnlyWithAssert

abstract fun <E : Any, T : Iterable<E?>> entriesInAnyOrderOnlyWithAssert(builder: IterableContains.Builder<E?, T, InAnyOrderOnlySearchBehaviour>, assertionCreators: List<(AssertionPlant<E>.() -> Unit)?>): Assertion

entriesInAnyOrderWithAssert

abstract fun <E : Any, T : Iterable<E?>> entriesInAnyOrderWithAssert(checkerOption: IterableContains.CheckerOption<E?, T, InAnyOrderSearchBehaviour>, assertionCreators: List<(AssertionPlant<E>.() -> Unit)?>): Assertion

entriesInOrderOnly

abstract fun <E : Any, T : Iterable<E?>> entriesInOrderOnly(builder: IterableContains.Builder<E?, T, InOrderOnlySearchBehaviour>, assertionCreators: List<(Expect<E>.() -> Unit)?>): Assertion

entriesInOrderOnlyGrouped

abstract fun <E : Any, T : Iterable<E?>> entriesInOrderOnlyGrouped(builder: IterableContains.Builder<E?, T, InOrderOnlyGroupedSearchBehaviour>, groups: List<List<(Expect<E>.() -> Unit)?>>): Assertion

entriesInOrderOnlyGroupedWithAssert

abstract fun <E : Any, T : Iterable<E?>> entriesInOrderOnlyGroupedWithAssert(builder: IterableContains.Builder<E?, T, InOrderOnlyGroupedSearchBehaviour>, groups: List<List<(AssertionPlant<E>.() -> Unit)?>>): Assertion

entriesInOrderOnlyWithAssert

abstract fun <E : Any, T : Iterable<E?>> entriesInOrderOnlyWithAssert(builder: IterableContains.Builder<E?, T, InOrderOnlySearchBehaviour>, assertionCreators: List<(AssertionPlant<E>.() -> Unit)?>): Assertion

valuesInAnyOrder

abstract fun <E, T : Iterable<E>> valuesInAnyOrder(checkerOption: IterableContains.CheckerOption<E, T, InAnyOrderSearchBehaviour>, expected: List<E>): Assertion

valuesInAnyOrderOnly

abstract fun <E, T : Iterable<E>> valuesInAnyOrderOnly(builder: IterableContains.Builder<E, T, InAnyOrderOnlySearchBehaviour>, expected: List<E>): Assertion

valuesInOrderOnly

abstract fun <E, T : Iterable<E>> valuesInOrderOnly(builder: IterableContains.Builder<E, T, InOrderOnlySearchBehaviour>, expected: List<E>): Assertion

valuesInOrderOnlyGrouped

abstract fun <E, T : Iterable<E>> valuesInOrderOnlyGrouped(builder: IterableContains.Builder<E, T, InOrderOnlyGroupedSearchBehaviour>, groups: List<List<E>>): Assertion

Inheritors

IterableContainsAssertionsBuilder

object IterableContainsAssertionsBuilder : IterableContainsAssertions

Delegates inter alia to the implementation of IterableContainsAssertions. In detail, it implements IterableContainsAssertions by delegating to iterableContainsAssertions which in turn delegates to the implementation via loadSingleService.