Class InvocationInterceptorChain.InterceptedInvocation<T>
java.lang.Object
org.junit.jupiter.engine.execution.InvocationInterceptorChain.InterceptedInvocation<T>
- All Implemented Interfaces:
InvocationInterceptor.Invocation<T>
- Enclosing class:
- InvocationInterceptorChain
private static class InvocationInterceptorChain.InterceptedInvocation<T>
extends Object
implements InvocationInterceptor.Invocation<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InvocationInterceptorChain.InterceptorCall<T>
private final InvocationInterceptor
private final InvocationInterceptor.Invocation<T>
-
Constructor Summary
ConstructorsConstructorDescriptionInterceptedInvocation
(InvocationInterceptor.Invocation<T> invocation, InvocationInterceptorChain.InterceptorCall<T> call, InvocationInterceptor interceptor) -
Method Summary
-
Field Details
-
invocation
-
call
-
interceptor
-
-
Constructor Details
-
InterceptedInvocation
InterceptedInvocation(InvocationInterceptor.Invocation<T> invocation, InvocationInterceptorChain.InterceptorCall<T> call, InvocationInterceptor interceptor)
-
-
Method Details
-
proceed
Description copied from interface:InvocationInterceptor.Invocation
Proceed with this invocation.- Specified by:
proceed
in interfaceInvocationInterceptor.Invocation<T>
- Returns:
- the result of this invocation; potentially
null
. - Throws:
Throwable
- in case the invocation failed
-
skip
public void skip()Description copied from interface:InvocationInterceptor.Invocation
Explicitly skip this invocation.This allows to bypass the check that
InvocationInterceptor.Invocation.proceed()
must be called at least once. The default implementation does nothing.- Specified by:
skip
in interfaceInvocationInterceptor.Invocation<T>
-