doc / ch.tutteli.atrium.logic.creating.iterable.contains.creators.impl / InOrderOnlyGroupedAssertionCreator

InOrderOnlyGroupedAssertionCreator

abstract class InOrderOnlyGroupedAssertionCreator<E, T, SC> : InOrderOnlyBaseAssertionCreator<E, T, List<SC>>, InOrderOnlyMatcher<E, SC>

Constructors

<init>

InOrderOnlyGroupedAssertionCreator(converter: (T) -> Iterable<E>, searchBehaviour: InOrderOnlyGroupedSearchBehaviour)

Functions

addSublistAssertion

abstract fun Expect<List<E>>.addSublistAssertion(groupOfSearchCriteria: List<SC>): Unit

createAssertionsAndReturnIndex

fun Expect<List<E>>.createAssertionsAndReturnIndex(searchCriteria: List<List<SC>>): Int

Inherited Functions

createAssertionGroup

fun createAssertionGroup(container: AssertionContainer<T>, searchCriteria: List<SC>): AssertionGroup

Creates an AssertionGroup representing the sophisticated contains assertion for the subject of the given container, based on the given searchCriteria.

createSingleEntryAssertion

open fun Expect<List<E>>.createSingleEntryAssertion(currentIndex: Int, searchCriterion: SC, translatableIndex: DescriptionIterableAssertion): Unit

entryAssertionCreator

abstract fun entryAssertionCreator(maybeSubject: Option<List<E>>, searchCriterion: SC): (() -> Boolean) -> Assertion

matches

abstract fun matches(actual: E, searchCriterion: SC): Boolean

Inheritors

InOrderOnlyGroupedEntriesAssertionCreator

class InOrderOnlyGroupedEntriesAssertionCreator<E : Any, T> : InOrderOnlyGroupedAssertionCreator<E?, T, (Expect<E>.() -> Unit)?>, InOrderOnlyMatcher<E?, (Expect<E>.() -> Unit)?>

InOrderOnlyGroupedValuesAssertionCreator

class InOrderOnlyGroupedValuesAssertionCreator<E, T> : InOrderOnlyGroupedAssertionCreator<E, T, E>, InOrderOnlyMatcher<E, E>