atrium-api-cc-en_GB-jvm / ch.tutteli.atrium.api.cc.en_GB / property

property

fun <T : Any, TProperty : Any> <ERROR CLASS><T>.property(property: KProperty0<TProperty>): <ERROR CLASS><TProperty>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0


fun <T : Any, TProperty : Any> <ERROR CLASS><T>.property(property: KProperty1<T, TProperty>): <ERROR CLASS><TProperty>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0

Creates an AssertionPlant for the given property which eventually adds AssertionGroups with a FeatureAssertionGroupType, containing the assertions created for the given property, to the current plant.

Return
An AssertionPlant for the given property.

fun <T : Any, TProperty : Any> <ERROR CLASS><T>.property(property: KProperty0<TProperty>, assertionCreator: <ERROR CLASS><TProperty>.() -> Unit): <ERROR CLASS><TProperty>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0


fun <T : Any, TProperty : Any> <ERROR CLASS><T>.property(property: KProperty1<T, TProperty>, assertionCreator: <ERROR CLASS><TProperty>.() -> Unit): <ERROR CLASS><TProperty>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0

Creates an AssertionPlant for the given property which eventually adds AssertionGroups with a FeatureAssertionGroupType, containing the assertions created for the given property, to the current plant -- starting with a group consisting of the Assertions created by the assertionCreator lambda.

Exceptions

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

Return
An AssertionPlant for the given property.