doc / ch.tutteli.atrium.assertions.iterable.contains.creators / IterableContainsInAnyOrderOnlyEntriesAssertionCreator

IterableContainsInAnyOrderOnlyEntriesAssertionCreator

class IterableContainsInAnyOrderOnlyEntriesAssertionCreator<E : Any, T : Iterable<E>> : IterableContainsInAnyOrderOnlyAssertionCreator<E, T, IAssertionPlant<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.

Parameters

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

Constructors

<init>

IterableContainsInAnyOrderOnlyEntriesAssertionCreator(searchBehaviour: IterableContainsInAnyOrderOnlySearchBehaviour)

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.

Functions

createAssertionForSearchCriterionAndRemoveMatchFromList

fun createAssertionForSearchCriterionAndRemoveMatchFromList(searchCriterion: IAssertionPlant<E>.() -> Unit, list: MutableList<E>): <ERROR CLASS><Boolean, IAssertion>