expectGrouped
fun expectGrouped(description: String = AssertionVerb.EXPECT_GROUPED.getDefault(), configuration: RootExpectBuilder.OptionsChooser<*>.() -> Unit = {}, groupingActions: ExpectGrouping.() -> Unit): ExpectGrouping(source)
Creates an ExpectGrouping which can be used to group multiple unrelated subjects.
Since
1.1.0
Parameters
description
Description of the root group.
groupingActions
Some action which defines what happens within the group (typically, creating some expectations via expect or nesting the grouping further).
configuration
, Optionally, you can define more options via RootExpectBuilder.OptionsChooser such as exchange components etc.
fun ExpectGrouping.expectGrouped(description: String, representationProvider: () -> Any = Text.EMPTY_PROVIDER, groupingActions: ExpectGrouping.() -> Unit): ExpectGrouping(source)
Deprecated
use `group` instead
Replace with
this.group(description, representationProvider, groupingActions)
Content copied to clipboard
In order to have one way only, use the function provided by the API such as group
.
You should basically only have one top expectGrouped
as entry point and then only use functionality from the API.
Since
1.1.0