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

IterableContainsInOrderOnlyEntriesAssertionCreator

class IterableContainsInOrderOnlyEntriesAssertionCreator<E : Any, T : Iterable<E>> : IterableContainsInOrderOnlyAssertionCreator<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 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 IAssertionPlant.subject for which the contains assertion is be build.

Constructors

<init>

IterableContainsInOrderOnlyEntriesAssertionCreator(searchBehaviour: IterableContainsInOrderOnlySearchBehaviour)

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

createEntryAssertion

fun createEntryAssertion(iterableAsList: List<E>, searchCriterion: IAssertionPlant<E>.() -> Unit, template: ((Boolean) -> IAssertion) -> IAssertionGroup): IAssertionGroup

matches

fun matches(actual: E, searchCriterion: IAssertionPlant<E>.() -> Unit): Boolean