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

returnValueOf

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


@JvmName("safeReturnValueOf") fun <T : Any, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction1<T, R>): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0

Creates an AssertionPlant, for the value returned by calling method, which eventually adds AssertionGroups with a FeatureAssertionGroupType, containing the assertions created for the return value, to the current plant.

Return
An AssertionPlant for the return value of the given method.

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


@JvmName("safeReturnValueOf") fun <T : Any, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction1<T, R>, assertionCreator: <ERROR CLASS><R>.() -> Unit): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0

Creates an AssertionPlant, for the value returned by calling method, which eventually adds AssertionGroups with a FeatureAssertionGroupType, containing the assertions created for the return value, 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 return value of the given method.

fun <T : Any, T1, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction1<T1, R>, arg1: T1): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0


@JvmName("safeReturnValueOf") fun <T : Any, T1, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction2<T, T1, R>, arg1: T1): <ERROR CLASS><R>

Creates an AssertionPlant, for the value returned by calling method with arg1, which eventually adds AssertionGroups with a FeatureAssertionGroupType, containing the assertions created for the return value, to the current plant.

Return
An AssertionPlant for the return value of the given method.

fun <T : Any, T1, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction1<T1, R>, arg1: T1, assertionCreator: <ERROR CLASS><R>.() -> Unit): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0


@JvmName("safeReturnValueOf") fun <T : Any, T1, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction2<T, T1, R>, arg1: T1, assertionCreator: <ERROR CLASS><R>.() -> Unit): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0

Creates an AssertionPlant, for the value returned by calling method with arg1, which eventually adds AssertionGroups with a FeatureAssertionGroupType, containing the assertions created for the return value, 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 return value of the given method.

fun <T : Any, T1, T2, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction2<T1, T2, R>, arg1: T1, arg2: T2): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0


@JvmName("safeReturnValueOf") fun <T : Any, T1, T2, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction3<T, T1, T2, R>, arg1: T1, arg2: T2): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0

Creates an AssertionPlant, for the value returned by calling method with arg1 and arg2, which eventually adds AssertionGroups with a FeatureAssertionGroupType, containing the assertions created for the return value, to the current plant.

Return
An AssertionPlant for the return value of the given method.

fun <T : Any, T1, T2, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction2<T1, T2, R>, arg1: T1, arg2: T2, assertionCreator: <ERROR CLASS><R>.() -> Unit): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0


@JvmName("safeReturnValueOf") fun <T : Any, T1, T2, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction3<T, T1, T2, R>, arg1: T1, arg2: T2, assertionCreator: <ERROR CLASS><R>.() -> Unit): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0

Creates an AssertionPlant, for the value returned by calling method with arg1 and arg2, which eventually adds AssertionGroups with a FeatureAssertionGroupType, containing the assertions created for the return value, 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 return value of the given method.

fun <T : Any, T1, T2, T3, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction3<T1, T2, T3, R>, arg1: T1, arg2: T2, arg3: T3): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0


@JvmName("safeReturnValueOf") fun <T : Any, T1, T2, T3, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction4<T, T1, T2, T3, R>, arg1: T1, arg2: T2, arg3: T3): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0

Creates an AssertionPlant, for the value returned by calling method with arg1, arg2 and arg3, which eventually adds AssertionGroups with a FeatureAssertionGroupType, containing the assertions created for the return value, to the current plant.

Return
An AssertionPlant for the return value of the given method.

fun <T : Any, T1, T2, T3, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction3<T1, T2, T3, R>, arg1: T1, arg2: T2, arg3: T3, assertionCreator: <ERROR CLASS><R>.() -> Unit): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0


@JvmName("safeReturnValueOf") fun <T : Any, T1, T2, T3, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction4<T, T1, T2, T3, R>, arg1: T1, arg2: T2, arg3: T3, assertionCreator: <ERROR CLASS><R>.() -> Unit): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0

Creates an AssertionPlant, for the value returned by calling method with arg1, arg2 and arg3, which eventually adds AssertionGroups with a FeatureAssertionGroupType, containing the assertions created for the return value, 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 return value of the given method.

fun <T : Any, T1, T2, T3, T4, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, arg3: T3, arg4: T4): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0


@JvmName("safeReturnValueOf") fun <T : Any, T1, T2, T3, T4, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction5<T, T1, T2, T3, T4, R>, arg1: T1, arg2: T2, arg3: T3, arg4: T4): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0

Creates an AssertionPlant, for the value returned by calling method with arg1, arg2, arg3 and arg4, which eventually adds AssertionGroups with a FeatureAssertionGroupType, containing the assertions created for the return value, to the current plant.

Return
An AssertionPlant for the return value of the given method.

fun <T : Any, T1, T2, T3, T4, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, arg3: T3, arg4: T4, assertionCreator: <ERROR CLASS><R>.() -> Unit): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0


@JvmName("safeReturnValueOf") fun <T : Any, T1, T2, T3, T4, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction5<T, T1, T2, T3, T4, R>, arg1: T1, arg2: T2, arg3: T3, arg4: T4, assertionCreator: <ERROR CLASS><R>.() -> Unit): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0

Creates an AssertionPlant, for the value returned by calling method with arg1, arg2, arg3 and arg4, which eventually adds AssertionGroups with a FeatureAssertionGroupType, containing the assertions created for the return value, 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 return value of the given method.

fun <T : Any, T1, T2, T3, T4, T5, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction5<T1, T2, T3, T4, T5, R>, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0


@JvmName("safeReturnValueOf") fun <T : Any, T1, T2, T3, T4, T5, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction6<T, T1, T2, T3, T4, T5, R>, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0

Creates an AssertionPlant, for the value returned by calling method with arg1, arg2, arg3, arg4 and arg5, which eventually adds AssertionGroups with a FeatureAssertionGroupType, containing the assertions created for the return value, to the current plant.

Return
An AssertionPlant for the return value of the given method.

fun <T : Any, T1, T2, T3, T4, T5, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction5<T1, T2, T3, T4, T5, R>, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, assertionCreator: <ERROR CLASS><R>.() -> Unit): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0


@JvmName("safeReturnValueOf") fun <T : Any, T1, T2, T3, T4, T5, R : Any> <ERROR CLASS><T>.returnValueOf(method: KFunction6<T, T1, T2, T3, T4, T5, R>, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, assertionCreator: <ERROR CLASS><R>.() -> Unit): <ERROR CLASS><R>
Deprecated: Switch from Assert to Expect and use feature instead; will be removed with 1.0.0

Creates an AssertionPlant, for the value returned by calling method with arg1, arg2, arg3, arg4 and arg5, which eventually adds AssertionGroups with a FeatureAssertionGroupType, containing the assertions created for the return value, 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 return value of the given method.