doc / ch.tutteli.atrium / its

its

fun <T : Any, TFeature : Any> IAssertionPlant<T>.its(feature: KProperty0<TFeature>): IAssertionPlant<TFeature> (source)

Creates an IAssertionPlant which immediately evaluates IAssertions using the given feature as subject.

Return
An IAssertionPlant for the given feature, using an AtriumFactory.newFeatureAssertionChecker.

See Also

IAtriumFactory.newCheckImmediately

fun <T : Any, TFeature : Any> IAssertionPlant<T>.its(feature: KProperty0<TFeature>, createAssertions: IAssertionPlant<TFeature>.() -> Unit): IAssertionPlant<TFeature> (source)

Creates an IAssertionPlant which lazily evaluates IAssertions using the given feature as subject.

The given createAssertions function is called after the plant has been created. It could create IAssertions for the given feature which are lazily evaluated by the newly created IAssertionPlant after the call to createAssertions is made.

Exceptions

AssertionError - Might throw an AssertionError if an additionally created IAssertions (by calling createAssertions) does not hold.

Return
An IAssertionPlant for the given feature, using an AtriumFactory.newFeatureAssertionChecker.

See Also

IAtriumFactory.newCheckLazily

fun <T : Any, TFeature> IAssertionPlant<T>.its(feature: KProperty0<TFeature>): IAssertionPlantNullable<TFeature> (source)

Creates an IAssertionPlantNullable using the given feature as subject.

Return
An IAssertionPlant for the given feature, using an AtriumFactory.newNullable.