atrium-core-impl-robstoll-lib / ch.tutteli.atrium.checking / FeatureAssertionChecker / check

check

fun check(assertionVerb: Translatable, subject: Any, assertions: List<Assertion>): Unit

Creates an AssertionGroups of type FeatureAssertionGroupType based on the given assertionVerb, subject and assertions and adds the assertion group to the subjectPlant instead of checking it itself.

Parameters

assertionVerb - Is used as AssertionGroup.name -- as side notice, the parameter was not renamed to featureName due to potential issues with named parameters. subject - Is used as AssertionGroup.subject -- as side notice, the parameter was not renamed to feature due to potential issues with named parameters. assertions - Is used as AssertionGroup.assertions.

Exceptions

AssertionError - Might throw an AssertionError in case one of the given assertions does not hold.