doc / ch.tutteli.atrium.domain.creating / IterableAssertions

IterableAssertions

interface IterableAssertions
Deprecated: Use IterableLikeAssertions from atrium-logic; will be removed with 1.0.0

Defines the minimum set of assertion functions and builders applicable to Iterable, which an implementation of the domain of Atrium has to provide.

Functions

all

abstract fun <E : Any, T : Iterable<E?>> all(expect: Expect<T>, assertionCreator: (Expect<E>.() -> Unit)?): Assertion
abstract fun <E : Any> all(plant: AssertionPlant<Iterable<E?>>, assertionCreator: (AssertionPlant<E>.() -> Unit)?): Assertion

containsBuilder

abstract fun <E, T : Iterable<E>> containsBuilder(subjectProvider: SubjectProvider<T>): IterableContains.Builder<E, T, NoOpSearchBehaviour>

containsNotBuilder

abstract fun <E, T : Iterable<E>> containsNotBuilder(subjectProvider: SubjectProvider<T>): IterableContains.Builder<E, T, NotSearchBehaviour>

hasNext

abstract fun <E, T : Iterable<E>> hasNext(expect: Expect<T>): Assertion

hasNotNext

abstract fun <E, T : Iterable<E>> hasNotNext(expect: Expect<T>): Assertion

max

abstract fun <E : Comparable<E>, T : Iterable<E>> max(expect: Expect<T>): ExtractedFeaturePostStep<T, E>

min

abstract fun <E : Comparable<E>, T : Iterable<E>> min(expect: Expect<T>): ExtractedFeaturePostStep<T, E>

Inheritors

IterableAssertionsBuilder

object IterableAssertionsBuilder : IterableAssertions

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