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

IterableContainsInAnyOrderOnlyAssertionCreator

abstract class IterableContainsInAnyOrderOnlyAssertionCreator<E, T : Iterable<E>, S> : ICreator<T, S>

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

Parameters

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

Constructors

<init>

IterableContainsInAnyOrderOnlyAssertionCreator(searchBehaviour: IterableContainsInAnyOrderOnlySearchBehaviour)

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

Functions

createAssertionForSearchCriterionAndRemoveMatchFromList

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

createAssertionGroup

fun createAssertionGroup(plant: IAssertionPlant<T>, searchCriterion: S, otherSearchCriteria: Array<out S>): IAssertionGroup

Creates an IAssertionGroup representing the sophisticated contains assertion for the given plant based on the given searchCriterion and possibly otherSearchCriteria (might be empty).

Inheritors

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.

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