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

Package ch.tutteli.atrium.logic.creating.iterable.contains.creators.impl

Contains default implementations for the interfaces defined in ch.tutteli.atrium.logic.creating.iterable.contains.creators.

Types

DefaultIterableLikeContainsAssertions

class DefaultIterableLikeContainsAssertions : IterableLikeContainsAssertions

DefaultIterableLikeContainsInAnyOrderAssertions

class DefaultIterableLikeContainsInAnyOrderAssertions : IterableLikeContainsInAnyOrderAssertions

InAnyOrderEntriesAssertionCreator

class InAnyOrderEntriesAssertionCreator<E : Any, T> : ContainsAssertionCreator<T, List<E?>, (Expect<E>.() -> Unit)?, IterableLikeContains.Checker>, IterableLikeContains.Creator<T, (Expect<E>.() -> Unit)?>

Represents a creator of a sophisticated contains assertions for Iterable where an expected entry can appear in any order and is identified by holding a group of assertions, created by an assertion creator lambda.

InAnyOrderOnlyAssertionCreator

abstract class InAnyOrderOnlyAssertionCreator<E, T, in SC> : IterableLikeContains.Creator<T, SC>

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

InAnyOrderOnlyEntriesAssertionCreator

class InAnyOrderOnlyEntriesAssertionCreator<E : Any, T> : InAnyOrderOnlyAssertionCreator<E?, T, (Expect<E>.() -> Unit)?>

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

InAnyOrderOnlyValuesAssertionCreator

class InAnyOrderOnlyValuesAssertionCreator<E, T> : InAnyOrderOnlyAssertionCreator<E, T, E>

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

InAnyOrderValuesAssertionCreator

class InAnyOrderValuesAssertionCreator<SC, T> : ContainsObjectsAssertionCreator<T, List<SC>, SC, InAnyOrderSearchBehaviour, IterableLikeContains.Checker>, IterableLikeContains.Creator<T, SC>

Represents a creator of a sophisticated contains assertions for Iterable where an expected entry can appear in any order and is identified by expected objects (equality comparison).

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.

InOrderOnlyBaseAssertionCreator

abstract class InOrderOnlyBaseAssertionCreator<E, T, SC> : IterableLikeContains.Creator<T, SC>

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>

InOrderOnlyMatcher

interface InOrderOnlyMatcher<E, SC>

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).

Functions

turnSubjectToList

fun <E, T> turnSubjectToList(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): AssertionContainer<List<E>>