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 java.lang.Object implements InvocationInterceptor.Invocation<T>
-
-
Field Summary
Fields Modifier and Type Field Description private InvocationInterceptor.Invocation<T>
delegate
private java.util.List<InvocationInterceptor>
interceptors
private java.util.concurrent.atomic.AtomicBoolean
invoked
-
Constructor Summary
Constructors Constructor Description ValidatingInvocation(InvocationInterceptor.Invocation<T> delegate, java.util.List<InvocationInterceptor> interceptors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
fail(java.lang.String prefix)
T
proceed()
Proceed with this invocation.(package private) void
verifyInvokedAtLeastOnce()
-
-
-
Field Detail
-
invoked
private final java.util.concurrent.atomic.AtomicBoolean invoked
-
delegate
private final InvocationInterceptor.Invocation<T> delegate
-
interceptors
private final java.util.List<InvocationInterceptor> interceptors
-
-
Constructor Detail
-
ValidatingInvocation
ValidatingInvocation(InvocationInterceptor.Invocation<T> delegate, java.util.List<InvocationInterceptor> interceptors)
-
-
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
-
verifyInvokedAtLeastOnce
void verifyInvokedAtLeastOnce()
-
fail
private void fail(java.lang.String prefix)
-
-