net.thucydides.junit.steps
Class StepInterceptor

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

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

Listen to step results and publish JUnit notification messages.

Author:
johnsmart

Constructor Summary
StepInterceptor(Class<?> testStepClass, List<org.junit.runner.notification.RunListener> listeners)
           
 
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,
                       List<org.junit.runner.notification.RunListener> listeners)
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 Wakaleo Consulting. All Rights Reserved.