doc / ch.tutteli.atrium.assertions.basic.contains.creators / ContainsAssertionCreator / createAssertionGroup

createAssertionGroup

fun createAssertionGroup(subjectProvider: SubjectProvider<T>, searchCriteria: List<S>): AssertionGroup (source)

Overrides Creator.createAssertionGroup

Creates an AssertionGroup representing the sophisticated contains assertion for the subject the given subjectProvider provides, 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

subjectProvider - Provides the subject for which the AssertionGroup is created.

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.

fun createAssertionGroup(subjectProvider: SubjectProvider<T>, searchCriterion: S, otherSearchCriteria: Array<out S>): AssertionGroup (source)