doc / ch.tutteli.atrium.logic.creating.iterable.contains / IterableLikeContains / Creator

Creator

interface Creator<T, in SC> : Contains.Creator<T, SC>

Represents the final step of a sophisticated contains assertion builder which creates the AssertionGroup as such.

Parameters

T - The type of the subject of the assertion.

SC - The type of the search criteria.

Inherited Functions

createAssertionGroup

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

Inheritors

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.

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

InOrderOnlyBaseAssertionCreator

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