doc / ch.tutteli.atrium.domain.creating.any.typetransformation / AnyTypeTransformation / FailureHandler / createAndAddAssertionToPlant

createAndAddAssertionToPlant

abstract fun createAndAddAssertionToPlant(parameterObject: ParameterObject<S, T>): Unit (source)

Creates the failing assertion and adds it to the ParameterObject.subjectPlant.

Typically it uses createFailingAssertion to create the failing assertion and augments it with collected assertions or such.

Parameters

parameterObject - The ParameterObject containing inter alia ParameterObject.assertionCreator, the lambda which could have created subsequent assertions for the transformed AssertionPlant.subject.

Exceptions

AssertionError - Might throw an AssertionError depending on the ParameterObject.subjectPlant.