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

IterableContainsInOrderOnlyAssertionCreator

abstract class IterableContainsInOrderOnlyAssertionCreator<E, T : Iterable<E?>, SC> : Creator<T, SC> (source)
Deprecated: Please open an issue if you used this class; will be removed with 1.0.0

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 AssertionPlant.subject for which the contains assertion is be build.

SC - The type of the search criteria.

Constructors

<init>

IterableContainsInOrderOnlyAssertionCreator(searchBehaviour: IterableContainsInOrderOnlySearchBehaviour)

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

Functions

createAssertionGroup

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

createEntryAssertion

abstract fun createEntryAssertion(iterableAsList: List<E?>, searchCriterion: SC, template: ((Boolean) -> Assertion) -> AssertionGroup): AssertionGroup

matches

abstract fun matches(actual: E?, searchCriterion: SC): Boolean

Inheritors

IterableContainsInOrderOnlyEntriesAssertionCreator

class IterableContainsInOrderOnlyEntriesAssertionCreator<E : Any, T : Iterable<E?>> : IterableContainsInOrderOnlyAssertionCreator<E, T, AssertionPlant<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.

IterableContainsInOrderOnlyObjectsAssertionCreator

class IterableContainsInOrderOnlyObjectsAssertionCreator<E, T : Iterable<E?>> : IterableContainsInOrderOnlyAssertionCreator<E, T, E>

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 an expected object (equality comparison).