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

IterableContainsInAnyOrderOnlyObjectsAssertionCreator

class IterableContainsInAnyOrderOnlyObjectsAssertionCreator<E, T : Iterable<E>> : IterableContainsInAnyOrderOnlyAssertionCreator<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).

Parameters

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

Constructors

<init>

IterableContainsInAnyOrderOnlyObjectsAssertionCreator(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 an expected object (equality comparison).

Functions

createAssertionForSearchCriterionAndRemoveMatchFromList

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