doc / ch.tutteli.atrium.core / CoreFactoryCommon / newCheckingPlant

newCheckingPlant

abstract fun <T : Any> newCheckingPlant(subjectProvider: () -> T): CheckingAssertionPlant<T> (source)
Deprecated: Switch from Assert to Expect and use newCollectingAssertionContainer instead, there is no CheckingAssertionContainer, you can use `getAsssertions.holds()`; will be removed with 1.0.0

Creates a CheckingAssertionPlant which provides a method to check whether allAssertionsHold.

Parameters

subjectProvider - The provider which provides the subject for which this plant will create and check Assertions.

Return
The newly created assertion plant.