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>delegateprivate java.util.List<InvocationInterceptor>interceptorsprivate java.util.concurrent.atomic.AtomicBooleaninvokedOrSkippedprivate static LoggerLOG
-
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 voidfail(java.lang.String prefix)private voidmarkInvokedOrSkipped()Tproceed()Proceed with this invocation.voidskip()Explicitly skip this invocation.(package private) voidverifyInvokedAtLeastOnce()
-
-
-
Field Detail
-
LOG
private static final Logger LOG
-
invokedOrSkipped
private final java.util.concurrent.atomic.AtomicBoolean invokedOrSkipped
-
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.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>
-
markInvokedOrSkipped
private void markInvokedOrSkipped()
-
verifyInvokedAtLeastOnce
void verifyInvokedAtLeastOnce()
-
fail
private void fail(java.lang.String prefix)
-
-