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 Tproceed()Proceed with this invocation.default voidskip()Explicitly skip this invocation.
-
-
-
Method Detail
-
proceed
T proceed() throws java.lang.Throwable
Proceed with this invocation.- Returns:
- the result of this invocation; potentially
null. - Throws:
java.lang.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.
-
-