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>callprivate InvocationInterceptorinterceptorprivate 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 Tproceed()Proceed with this invocation.voidskip()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.InvocationProceed with this invocation.- Specified by:
proceedin 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.InvocationExplicitly 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:
skipin interfaceInvocationInterceptor.Invocation<T>
-
-