public class StepInterceptor extends Object implements MethodErrorReporter, Interceptor
| Modifier and Type | Method and Description |
|---|---|
Object |
intercept(Method method,
Object target,
Object[] args,
Method zuper) |
void |
reportMethodError(Throwable generalException,
Object obj,
Method method,
Object[] args) |
static void |
resetExpectedExceptionType() |
static void |
setExpectedExceptionType(Class expectedException) |
public static void setExpectedExceptionType(Class expectedException)
public static void resetExpectedExceptionType()
@RuntimeType public Object intercept(@Origin Method method, @This Object target, @AllArguments Object[] args, @SuperMethod Method zuper) throws Throwable
intercept in interface InterceptorThrowablepublic void reportMethodError(Throwable generalException, Object obj, Method method, Object[] args) throws Throwable
reportMethodError in interface MethodErrorReporterThrowableCopyright © 2022. All rights reserved.