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 Interceptor
Throwable
public void reportMethodError(Throwable generalException, Object obj, Method method, Object[] args) throws Throwable
reportMethodError
in interface MethodErrorReporter
Throwable
Copyright © 2021. All rights reserved.