doc / ch.tutteli.atrium / AtriumFactory / newCheckLazily

newCheckLazily

fun <T : Any> newCheckLazily(commonFields: CommonFields<T>): IAssertionPlant<T>

Overrides IAtriumFactory.newCheckLazily

Creates an IAssertionPlant which does not check the created or added IAssertions until one calls IAssertionPlant.checkAssertions.

It uses the IAssertionPlantWithCommonFields.CommonFields.assertionChecker of the given commonFields for assertion checking.

Parameters

commonFields - The commonFields for the new assertion plant.

Return
The newly created assertion plant.