Module org.junit.jupiter.engine
Class InvocationInterceptorChain.ValidatingInvocation<T>
java.lang.Object
org.junit.jupiter.engine.execution.InvocationInterceptorChain.ValidatingInvocation<T>
- All Implemented Interfaces:
InvocationInterceptor.Invocation<T>
- Enclosing class:
InvocationInterceptorChain
private static class InvocationInterceptorChain.ValidatingInvocation<T>
extends Object
implements InvocationInterceptor.Invocation<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InvocationInterceptor.Invocation
<T> private final List
<InvocationInterceptor> private final AtomicBoolean
private static final Logger
-
Constructor Summary
ConstructorsConstructorDescriptionValidatingInvocation
(InvocationInterceptor.Invocation<T> delegate, List<InvocationInterceptor> interceptors) -
Method Summary
-
Field Details
-
logger
-
invokedOrSkipped
-
delegate
-
interceptors
-
-
Constructor Details
-
ValidatingInvocation
ValidatingInvocation(InvocationInterceptor.Invocation<T> delegate, List<InvocationInterceptor> interceptors)
-
-
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>
-
markInvokedOrSkipped
private void markInvokedOrSkipped() -
verifyInvokedAtLeastOnce
void verifyInvokedAtLeastOnce() -
fail
-