MapLikeContains

Defines the contract for sophisticated MapLike contains assertion builders.

The building process is typically started by the creation of an EntryPointStep, goes on by specifying a desired SearchBehaviour and is finalized by one of the MapLikeContainsAssertions which usually use a Creator.

Types

Link copied to clipboard
interface Creator<T : MapLike, in SC> : Contains.Creator<T, SC>

Represents the final step of a sophisticated contains assertion builder which creates the AssertionGroup as such.

Link copied to clipboard

The entry point of the contract.

Link copied to clipboard

Sole purpose of this interface is to hide EntryPointStepLogic from newcomers which usually do not have to deal with this type and to keep the API clean.

Link copied to clipboard

The entry point of the contract on the logic level, containing the container -- i.e. the subject of this expectation for which the sophisticated contain assertion should be created -- as well as the chosen searchBehaviour.

Link copied to clipboard

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.