net.thucydides.core.steps
Class StepInterceptor

Package class diagram package StepInterceptor
java.lang.Object
  extended by net.thucydides.core.steps.StepInterceptor
All Implemented Interfaces:
Serializable, net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.MethodInterceptor

public class StepInterceptor
extends Object
implements net.sf.cglib.proxy.MethodInterceptor, Serializable

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
See Also:
Serialized Form

Constructor Summary
StepInterceptor(Class<?> testStepClass)
           
 
Method Summary
 Object intercept(Object obj, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy proxy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepInterceptor

public StepInterceptor(Class<?> testStepClass)
Method Detail

intercept

public Object intercept(Object obj,
                        Method method,
                        Object[] args,
                        net.sf.cglib.proxy.MethodProxy proxy)
                 throws Throwable
Specified by:
intercept in interface net.sf.cglib.proxy.MethodInterceptor
Throws:
Throwable


Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.