callObject

public static T callObject<T>(ObjectCallable<T> callable, Context context, PreCommentSupplier<? super ResultOfObject<T>> preCommentSupplier)(source)

Asserts that the given callable does not throw an exception and returns the object returned by the callable.

Return

the object returned by the callable

Parameters

callable

the callable to call

context

the context of the test

preCommentSupplier

the supplier of the pre-comment

<T>

the return type of the callable


public static T callObject<T>(ObjectCallable<T> callable)(source)

Asserts that the given callable does not throw an exception and returns the object returned by the callable.

Return

the object returned by the callable

Parameters

callable

the callable to call

<T>

the return type of the callable


public static T callObject<T>(MethodLink methodLink, Object instance, Context context, PreCommentSupplier<? super ResultOfObject<T>> preCommentSupplier, Array<Object> args)(source)

Asserts that the given callable does not throw an exception and returns the object returned by the callable.

Return

the object returned by the method

Parameters

methodLink

the method to call

instance

the instance to call the method on

context

the context of the test

preCommentSupplier

the supplier of the pre-comment

args

the arguments to pass to the method

<T>

the return type of the method