InOrderOnlyAssertionCreator

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

Parameters

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 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: InOrderOnlySearchBehaviour, reportingOptions: InOrderOnlyReportingOptions.() -> 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
open fun AssertionContainer<List<E>>.addSingleEntryAssertion(currentIndex: Int, searchCriterion: SC, translatableIndex: DescriptionIterableLikeExpectation)
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.

Link copied to clipboard
abstract fun AssertionContainer<List<E>>.elementAssertionCreator(maybeElement: Option<E>, searchCriterion: SC): Assertion