Package net.thucydides.core.steps
Class StepInterceptor
java.lang.Object
net.thucydides.core.steps.StepInterceptor
- All Implemented Interfaces:
Interceptor,MethodErrorReporter
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
Modifier and TypeMethodDescriptionvoidreportMethodError(Throwable generalException, Object obj, Method method, Object[] args) static voidstatic voidsetExpectedExceptionType(Class expectedException)
-
Method Details
-
setExpectedExceptionType
-
resetExpectedExceptionType
public static void resetExpectedExceptionType() -
intercept
@RuntimeType public Object intercept(@Origin Method method, @This Object target, @AllArguments Object[] args, @SuperMethod Method zuper) throws Throwable - Specified by:
interceptin interfaceInterceptor- Throws:
Throwable
-
reportMethodError
public void reportMethodError(Throwable generalException, Object obj, Method method, Object[] args) throws Throwable - Specified by:
reportMethodErrorin interfaceMethodErrorReporter- Throws:
Throwable
-