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

IterableContainsInOrderOnlyEntriesAssertionCreator

class IterableContainsInOrderOnlyEntriesAssertionCreator<E : Any, T : Iterable<E?>> : IterableContainsInOrderOnlyAssertionCreator<E, T, (AssertionPlant<E>.() -> Unit)?>
Deprecated: Please open an issue if you used this class; will be removed with 1.0.0

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 AssertionPlant.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: (AssertionPlant<E>.() -> Unit)?, template: ((Boolean) -> Assertion) -> AssertionGroup): AssertionGroup

matches

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

Inherited Functions

createAssertionGroup

fun createAssertionGroup(plant: AssertionPlant<T>, searchCriterion: SC, otherSearchCriteria: Array<out SC>): AssertionGroup
fun createAssertionGroup(subjectProvider: SubjectProvider<T>, searchCriteria: List<SC>): AssertionGroup