doc / ch.tutteli.atrium.domain.creating.iterable.contains / IterableContains / SearchBehaviour

SearchBehaviour

interface SearchBehaviour : Contains.SearchBehaviour

Represents a search behaviour but leaves it up to the Creator how this behaviour is implemented -- yet, it provides a method to decorate a description (a Translatable) in order that it reflects the search behaviour.

Inherited Functions

decorateDescription

abstract fun decorateDescription(description: Translatable): Translatable

Decorates the given description so that it represents the search behaviour and returns the result.

Inheritors

InAnyOrderOnlySearchBehaviour

interface InAnyOrderOnlySearchBehaviour : IterableContains.SearchBehaviour

Represents the search behaviour that expected entries might appear in any order within the Iterable but that the resulting assertion should not hold if there are less or more entries than expected.

InAnyOrderSearchBehaviour

interface InAnyOrderSearchBehaviour : IterableContains.SearchBehaviour

Represents the search behaviour that expected entries might appear in any order within the Iterable.

InOrderOnlyGroupedSearchBehaviour

interface InOrderOnlyGroupedSearchBehaviour : IterableContains.SearchBehaviour

Represents the search behaviour that expected entries have to appear in the given order in terms of groups within the Iterable whereas the entries can be in any order within the group and that the resulting assertion should not hold if there are less or more entries than expected.

InOrderOnlySearchBehaviour

interface InOrderOnlySearchBehaviour : IterableContains.SearchBehaviour

Represents the search behaviour that expected entries have to appear in the given order within the Iterable and that the resulting assertion should not hold if there are less or more entries than expected.

InOrderSearchBehaviour

interface InOrderSearchBehaviour : IterableContains.SearchBehaviour

Represents the search behaviour that expected entries have to appear in the given order within the Iterable.

NoOpSearchBehaviour

interface NoOpSearchBehaviour : IterableContains.SearchBehaviour

Represents the default search behaviour or rather does not define a search behaviour at all.

SearchBehaviour

interface SearchBehaviour : Contains.SearchBehaviour, IterableContains.SearchBehaviour

Represents a search behaviour but leaves it up to the Creator how this behaviour is implemented -- yet, it provides a method to decorate a description (a Translatable) in order that it reflects the search behaviour.