InOrderOnlyEntriesAssertionCreator

Represents a creator of a sophisticated contains assertions for Iterable where exactly the expected entries have to appear in the specified order and where an entry 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 only which is used to decorate the description (a Translatable) which is used for the AssertionGroup.

Constructors

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

Represents a creator of a sophisticated contains assertions for Iterable where exactly the expected entries have to appear in the specified order and where an entry is identified by holding a group of assertions, created by an assertion creator lambda.

Functions

Link copied to clipboard
open override fun AssertionContainer<List<E?>>.addSingleEntryAssertion(currentIndex: Int, searchCriterion: Expect<E>.() -> Unit?, translatableIndex: DescriptionIterableLikeExpectation)
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.

Link copied to clipboard
open override fun AssertionContainer<List<E?>>.elementAssertionCreator(maybeElement: Option<E?>, searchCriterion: Expect<E>.() -> Unit?): Assertion