doc / ch.tutteli.atrium.logic.creating.basic.contains.creators.impl / ContainsAssertionCreator / createAssertionGroup

createAssertionGroup

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

Overrides Creator.createAssertionGroup

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.

Parameters

container - The AssertionContainer from which this building process started.

searchCriteria - The search criteria - typically not empty.

Exceptions

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

Return
The newly created AssertionGroup.