Package net.thucydides.core.steps
Class StepInterceptor
- java.lang.Object
-
- net.thucydides.core.steps.StepInterceptor
-
- All Implemented Interfaces:
Interceptor
,MethodErrorReporter
public class StepInterceptor extends Object implements MethodErrorReporter, Interceptor
Listen to step results and publish notification messages. The step interceptor is designed to work on a given test case or user story. It logs test step results so that they can be reported on at the end of the test case.- Author:
- johnsmart
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
intercept(Method method, Object target, Object[] args, Method zuper)
void
reportMethodError(Throwable generalException, Object obj, Method method, Object[] args)
-
-
-
Method Detail
-
intercept
@RuntimeType public Object intercept(@Origin Method method, @This Object target, @AllArguments Object[] args, @SuperMethod Method zuper) throws Throwable
- Specified by:
intercept
in interfaceInterceptor
- Throws:
Throwable
-
reportMethodError
public void reportMethodError(Throwable generalException, Object obj, Method method, Object[] args) throws Throwable
- Specified by:
reportMethodError
in interfaceMethodErrorReporter
- Throws:
Throwable
-
-