doc / ch.tutteli.atrium.api.cc.de_CH / rueckgabewertVon

rueckgabewertVon

fun <T : Any, TReturnValue : Any> IAssertionPlant<T>.rueckgabewertVon(method: KFunction0<TReturnValue>): IAssertionPlant<TReturnValue>

Creates an IAssertionPlant, for the value returned by calling method, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant.

Return
An IAssertionPlant for the return value of the given method, using an AtriumFactory.newFeatureAssertionChecker.

fun <T : Any, TReturnValue : Any> IAssertionPlant<T>.rueckgabewertVon(method: KFunction0<TReturnValue>, assertionCreator: IAssertionPlant<TReturnValue>.() -> Unit): IAssertionPlant<TReturnValue>

Creates an IAssertionPlant, for the value returned by calling method, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant -- starting with a group consisting of the IAssertions created by the assertionCreator lambda.

Exceptions

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

Return
An IAssertionPlant for the return value of the given method, using an AtriumFactory.newFeatureAssertionChecker.

fun <T : Any, T1, TReturnValue : Any> IAssertionPlant<T>.rueckgabewertVon(method: KFunction1<T1, TReturnValue>, arg1: T1): IAssertionPlant<TReturnValue>

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

Return
An IAssertionPlant for the return value of the given method, using an AtriumFactory.newFeatureAssertionChecker.

fun <T : Any, T1, TReturnValue : Any> IAssertionPlant<T>.rueckgabewertVon(method: KFunction1<T1, TReturnValue>, arg1: T1, assertionCreator: IAssertionPlant<TReturnValue>.() -> Unit): IAssertionPlant<TReturnValue>

Creates an IAssertionPlant, for the value returned by calling method with arg1, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant -- starting with a group consisting of the IAssertions created by the assertionCreator lambda.

Exceptions

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

Return
An IAssertionPlant for the return value of the given method, using an AtriumFactory.newFeatureAssertionChecker.

fun <T : Any, T1, T2, TReturnValue : Any> IAssertionPlant<T>.rueckgabewertVon(method: KFunction2<T1, T2, TReturnValue>, arg1: T1, arg2: T2): IAssertionPlant<TReturnValue>

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

Return
An IAssertionPlant for the return value of the given method, using an AtriumFactory.newFeatureAssertionChecker.

fun <T : Any, T1, T2, TReturnValue : Any> IAssertionPlant<T>.rueckgabewertVon(method: KFunction2<T1, T2, TReturnValue>, arg1: T1, arg2: T2, assertionCreator: IAssertionPlant<TReturnValue>.() -> Unit): IAssertionPlant<TReturnValue>

Creates an IAssertionPlant, for the value returned by calling method with arg1 and arg2, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant -- starting with a group consisting of the IAssertions created by the assertionCreator lambda.

Exceptions

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

Return
An IAssertionPlant for the return value of the given method, using an AtriumFactory.newFeatureAssertionChecker.

fun <T : Any, T1, T2, T3, TReturnValue : Any> IAssertionPlant<T>.rueckgabewertVon(method: KFunction3<T1, T2, T3, TReturnValue>, arg1: T1, arg2: T2, arg3: T3): IAssertionPlant<TReturnValue>

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

Return
An IAssertionPlant for the return value of the given method, using an AtriumFactory.newFeatureAssertionChecker.

fun <T : Any, T1, T2, T3, TReturnValue : Any> IAssertionPlant<T>.rueckgabewertVon(method: KFunction3<T1, T2, T3, TReturnValue>, arg1: T1, arg2: T2, arg3: T3, assertionCreator: IAssertionPlant<TReturnValue>.() -> Unit): IAssertionPlant<TReturnValue>

Creates an IAssertionPlant, for the value returned by calling method with arg1, arg2 and arg3, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant -- starting with a group consisting of the IAssertions created by the assertionCreator lambda.

Exceptions

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

Return
An IAssertionPlant for the return value of the given method, using an AtriumFactory.newFeatureAssertionChecker.

fun <T : Any, T1, T2, T3, T4, TReturnValue : Any> IAssertionPlant<T>.rueckgabewertVon(method: KFunction4<T1, T2, T3, T4, TReturnValue>, arg1: T1, arg2: T2, arg3: T3, arg4: T4): IAssertionPlant<TReturnValue>

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

Return
An IAssertionPlant for the return value of the given method, using an AtriumFactory.newFeatureAssertionChecker.

fun <T : Any, T1, T2, T3, T4, TReturnValue : Any> IAssertionPlant<T>.rueckgabewertVon(method: KFunction4<T1, T2, T3, T4, TReturnValue>, arg1: T1, arg2: T2, arg3: T3, arg4: T4, assertionCreator: IAssertionPlant<TReturnValue>.() -> Unit): IAssertionPlant<TReturnValue>

Creates an IAssertionPlant, for the value returned by calling method with arg1, arg2, arg3 and arg4, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant -- starting with a group consisting of the IAssertions created by the assertionCreator lambda.

Exceptions

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

Return
An IAssertionPlant for the return value of the given method, using an AtriumFactory.newFeatureAssertionChecker.

fun <T : Any, T1, T2, T3, T4, T5, TReturnValue : Any> IAssertionPlant<T>.rueckgabewertVon(method: KFunction5<T1, T2, T3, T4, T5, TReturnValue>, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5): IAssertionPlant<TReturnValue>

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

Return
An IAssertionPlant for the return value of the given method, using an AtriumFactory.newFeatureAssertionChecker.

fun <T : Any, T1, T2, T3, T4, T5, TReturnValue : Any> IAssertionPlant<T>.rueckgabewertVon(method: KFunction5<T1, T2, T3, T4, T5, TReturnValue>, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, assertionCreator: IAssertionPlant<TReturnValue>.() -> Unit): IAssertionPlant<TReturnValue>

Creates an IAssertionPlant, for the value returned by calling method with arg1, arg2, arg3, arg4 and arg5, which eventually adds IAssertionGroups with a IFeatureAssertionGroupType, containing the assertions created for the return value, to the current plant -- starting with a group consisting of the IAssertions created by the assertionCreator lambda.

Exceptions

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

Return
An IAssertionPlant for the return value of the given method, using an AtriumFactory.newFeatureAssertionChecker.