ContainsObjectsAssertionCreator

abstract class ContainsObjectsAssertionCreator<T : Any, TT : Any, in SC, S : Contains.SearchBehaviour, C : Contains.Checker>(searchBehaviour: S, checkers: List<C>) : ContainsAssertionCreator<T, TT, SC, C> (source)

Represents the base class for Contains.Creators which use bare objects as search criteria (matching them with ==).

It provides a template to fulfill the job of creating the sophisticated contains Assertion.

Parameters

T

The type of the subject of this expectation.

TT

The type of the subject of this expectation after making it multiple times consumable.

SC

The type of the search criteria.

S

The type of the current Contains.SearchBehaviour.

C

The type of the checkers in use (typically a sub interface of Contains.Checker).

searchBehaviour

The chosen search behaviour.

checkers

The Contains.Checkers which shall be applied to the search result.

Inheritors

Constructors

Link copied to clipboard
constructor(searchBehaviour: S, checkers: List<C>)

Represents the base class for Contains.Creators which use bare objects as search criteria (matching them with ==).

Functions

Link copied to clipboard
override fun createAssertionGroup(container: AssertionContainer<T>, searchCriteria: List<SC>): AssertionGroup

Creates an AssertionGroup representing the sophisticated contains assertion for the subject of the given container, based on the given searchCriteria.