createAssertionGroup

abstract fun createAssertionGroup(container: AssertionContainer<T>, searchCriteria: List<SC>): AssertionGroup(source)

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

The search process as such is usually influenced by a SearchBehaviour which defines the search behaviour and Checkers are used to create Assertions based on a determined search result which are grouped together into an AssertionGroup. This resulting AssertionGroup represents the sophisticated contains assertion as a whole.

Return

The newly created AssertionGroup.

Parameters

container

The AssertionContainer from which this building process started.

searchCriteria

The search criteria - typically not empty.

Throws

Might throw an IllegalArgumentException in case searchCriteria is empty and an empty value is not allowed.