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

InAnyOrderOnlyValuesAssertionCreator

class InAnyOrderOnlyValuesAssertionCreator<E, T> : InAnyOrderOnlyAssertionCreator<E, T, E> (source)

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

Parameters

T - The type of the subject of this expectation for which the contains assertion is be build.

Constructors

<init>

InAnyOrderOnlyValuesAssertionCreator(converter: (T) -> Iterable<E>, searchBehaviour: InAnyOrderOnlySearchBehaviour)

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

Functions

createAssertionForSearchCriterionAndRemoveMatchFromList

fun createAssertionForSearchCriterionAndRemoveMatchFromList(container: AssertionContainer<*>, searchCriterion: E, list: MutableList<E?>): Pair<Boolean, Assertion>

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.