doc / ch.tutteli.atrium.logic / IterableLikeAssertions

IterableLikeAssertions

interface IterableLikeAssertions

Collection of assertion functions and builders which are applicable to subjects which can be transformed to an Iterable - intended for types which are Iterable like such as Array or Sequence.

Functions

all

abstract fun <T : Any, E : Any> all(container: AssertionContainer<T>, converter: (T) -> Iterable<E?>, assertionCreatorOrNull: (Expect<E>.() -> Unit)?): Assertion

containsBuilder

abstract fun <T : Any, E> containsBuilder(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): IterableLikeContains.EntryPointStep<E, T, NoOpSearchBehaviour>

containsNoDuplicates

abstract fun <T : Any, E> containsNoDuplicates(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): Assertion

containsNotBuilder

abstract fun <T : Any, E> containsNotBuilder(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): NotCheckerStep<E, T, NotSearchBehaviour>

hasNext

abstract fun <T : Any, E> hasNext(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): Assertion

hasNotNext

abstract fun <T : Any, E> hasNotNext(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): Assertion

max

abstract fun <T : Any, E : Comparable<E>> max(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): FeatureExtractorBuilder.ExecutionStep<T, E>

min

abstract fun <T : Any, E : Comparable<E>> min(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): FeatureExtractorBuilder.ExecutionStep<T, E>

Inheritors

DefaultIterableLikeAssertions

class DefaultIterableLikeAssertions : IterableLikeAssertions