class FeatureAssertionChecker<out T : Any> : AssertionChecker
An AssertionChecker useful for feature assertions. It creates an AssertionGroup of type FeatureAssertionGroupType, adds the given assertions to it and finally adds the group to the given subjectPlant.
Or in other words, instead of checking the given assertions itself, it wraps them into a feature assertion group and delegates checking of this group (hence including the given assertion) to the subjectPlant.
T - The type of the subject of the given subjectPlant.
FeatureAssertionChecker(subjectPlant: AssertionPlant<T>)
An AssertionChecker useful for feature assertions. It creates an AssertionGroup of type FeatureAssertionGroupType, adds the given assertions to it and finally adds the group to the given subjectPlant. |
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. |