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

InOrderOnlyMatcher

interface InOrderOnlyMatcher<E, SC> (source)

Functions

addSingleEntryAssertion

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

elementAssertionCreator

abstract fun AssertionContainer<List<E>>.elementAssertionCreator(maybeElement: Option<E>, searchCriterion: SC): Assertion

Inheritors

InOrderOnlyAssertionCreator

abstract class InOrderOnlyAssertionCreator<E, T, SC> : InOrderOnlyBaseAssertionCreator<E, T, SC>, InOrderOnlyMatcher<E, SC>

Represents the base class for in order only assertion creators and provides a corresponding template to fulfill its responsibility.

InOrderOnlyEntriesAssertionCreator

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

Represents a creator of a sophisticated contains assertions for Iterable where exactly the expected entries have to appear in the specified order and where an entry is identified by holding a group of assertions, created by an assertion creator lambda.

InOrderOnlyEntriesMatcher

class InOrderOnlyEntriesMatcher<E : Any> : InOrderOnlyMatcher<E?, (Expect<E>.() -> Unit)?>

InOrderOnlyGroupedAssertionCreator

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

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>

InOrderOnlyValueMatcher

class InOrderOnlyValueMatcher<E> : InOrderOnlyMatcher<E, E>

InOrderOnlyValuesAssertionCreator

class InOrderOnlyValuesAssertionCreator<E, T> : InOrderOnlyAssertionCreator<E, T, E>, InOrderOnlyMatcher<E, E>

Represents a creator of a sophisticated contains assertions for Iterable where exactly the expected entries have to appear in the specified order and where an entry is identified by an expected object (equality comparison).