public class SpringStepMethodInterceptor
extends com.tngtech.jgiven.impl.intercept.StepMethodInterceptor
implements org.aopalliance.intercept.MethodInterceptor
MethodInterceptor
for intercepting JGiven methods
See below on how to configure this bean.
Sample Configuration:
@Bean @Scope("prototype") public SpringStepMethodInterceptor springStepMethodInterceptor() { return new SpringStepMethodInterceptor(); }
The StepMethodInterceptor is stateful, and thus should use "prototype" scope
Constructor and Description |
---|
SpringStepMethodInterceptor() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
disableMethodExecution, doIntercept, enableMethodExecution, enableMethodHandling, getInvocationMode, getScenarioMethodHandler, getStackDepth, handleThrowable, returnReceiverOrNull, setScenarioMethodHandler, setStackDepth