Module org.junit.jupiter.api
Package org.junit.jupiter.api.extension
Interface InvocationInterceptor.Invocation<T>
-
- Type Parameters:
T
- the result type
- Enclosing interface:
- InvocationInterceptor
@API(status=EXPERIMENTAL, since="5.5") public static interface InvocationInterceptor.Invocation<T>
An invocation that returns a result and may throw aThrowable
.This interface is not intended to be implemented by clients.
- Since:
- 5.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description T
proceed()
Proceed with this invocation.default void
skip()
Explicitly skip this invocation.
-
-
-
Method Detail
-
proceed
T proceed() throws Throwable
Proceed with this invocation.- Returns:
- the result of this invocation; potentially
null
. - Throws:
Throwable
- in case the invocation failed
-
skip
@API(status=EXPERIMENTAL, since="5.6") default void skip()
Explicitly skip this invocation.This allows to bypass the check that
proceed()
must be called at least once. The default implementation does nothing.
-
-