InAnyOrderEntriesAssertionCreator

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.

Parameters

T

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

searchBehaviour

The search behaviour -- in this case representing in any order which is used to decorate the description (a Translatable) which is used for the AssertionGroup.

checkers

The checkers which create assertions based on the search result.

Constructors

Link copied to clipboard
constructor(converter: (T) -> Iterable<E?>, searchBehaviour: InAnyOrderSearchBehaviour, checkers: List<IterableLikeContains.Checker>, notToHaveNextOrNoneFunName: String)

Represents a creator of a sophisticated contains assertions for Iterable where expected entries can appear in any order and are identified by holding a group of assertions, created by an assertion creator lambda.

Functions

Link copied to clipboard
override fun createAssertionGroup(container: AssertionContainer<T>, searchCriteria: List<Expect<E>.() -> Unit?>): AssertionGroup

Creates an AssertionGroup representing the sophisticated contains assertion for the subject of the given container, based on the given searchCriteria.