Module org.junit.jupiter.engine
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 java.lang.Object implements InvocationInterceptor.Invocation<T>
-
-
Field Summary
Fields Modifier and Type Field Description private InvocationInterceptorChain.InterceptorCall<T>
call
private InvocationInterceptor
interceptor
private InvocationInterceptor.Invocation<T>
invocation
-
Constructor Summary
Constructors Constructor Description InterceptedInvocation(InvocationInterceptor.Invocation<T> invocation, InvocationInterceptorChain.InterceptorCall<T> call, InvocationInterceptor interceptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
proceed()
Proceed with this invocation.void
skip()
Explicitly skip this invocation.
-
-
-
Field Detail
-
invocation
private final InvocationInterceptor.Invocation<T> invocation
-
call
private final InvocationInterceptorChain.InterceptorCall<T> call
-
interceptor
private final InvocationInterceptor interceptor
-
-
Constructor Detail
-
InterceptedInvocation
InterceptedInvocation(InvocationInterceptor.Invocation<T> invocation, InvocationInterceptorChain.InterceptorCall<T> call, InvocationInterceptor interceptor)
-
-
Method Detail
-
proceed
public T proceed() throws java.lang.Throwable
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:
java.lang.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>
-
-