InAnyOrderOnlyAssertionCreator

abstract class InAnyOrderOnlyAssertionCreator<E, T : IterableLike, in SC>(converter: (T) -> Iterable<E>, searchBehaviour: InAnyOrderOnlySearchBehaviour, reportingOptions: InAnyOrderOnlyReportingOptions.() -> Unit) : IterableLikeContains.Creator<T, SC> (source)

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

Parameters

E

The type of the elements of the Iterable the converter is going to create.

T

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

SC

The type of the search criteria.

searchBehaviour

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

Inheritors

Constructors

Link copied to clipboard
constructor(converter: (T) -> Iterable<E>, searchBehaviour: InAnyOrderOnlySearchBehaviour, reportingOptions: InAnyOrderOnlyReportingOptions.() -> Unit)

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

Functions

Link copied to clipboard
override 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.