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

createAssertionGroup

fun createAssertionGroup(plant: IAssertionPlant<T>, searchCriterion: S, otherSearchCriteria: Array<out S>): IAssertionGroup

Creates an IAssertionGroup representing the sophisticated contains assertion for the given plant based on the given searchCriterion and possibly otherSearchCriteria (might be empty).

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

Parameters

plant - The plant -- or rather its subject -- for which the IAssertionGroup is created. searchCriterion - A search criterion. otherSearchCriteria - Other search criteria (might also be empty).

Return
The newly created IAssertionGroup.