org.test4j.module.core.utility
类 ListenerExecutor

java.lang.Object
  继承者 org.test4j.module.core.utility.ListenerExecutor

public class ListenerExecutor
extends Object

test4j Listener执行器

作者:
darui.wudr

构造方法摘要
ListenerExecutor()
           
 
方法摘要
static Throwable executeAfterClassEvents(Object testedObject)
          执行teardownClass的事件
static Throwable executeAfterMethodEvents(Object testedObject, Method testedMethod)
          执行teardown method事件
static Throwable executeAfterRunnedEvents(Object testedObject, Method testedMethod, Throwable error)
          执行测试方法完毕后的事件
static Throwable executeBeforeClassEvents(Class testClazz)
          执行setup class的事件
static Throwable executeBeforeMethodEvents(Object testedObject, Method testedMethod)
          执行setup method事件
static Throwable executeBeforeRunningEvents(Object testedObject, Method testedMethod)
          执行测试方法开始的事件
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ListenerExecutor

public ListenerExecutor()
方法详细信息

executeBeforeClassEvents

public static Throwable executeBeforeClassEvents(Class testClazz)
执行setup class的事件

参数:
testedObject - 测试对象
返回:
事件异常

executeBeforeMethodEvents

public static Throwable executeBeforeMethodEvents(Object testedObject,
                                                  Method testedMethod)
执行setup method事件

参数:
testedObject - 测试对象
testedMethod - 测试方法
返回:
事件异常

executeBeforeRunningEvents

public static Throwable executeBeforeRunningEvents(Object testedObject,
                                                   Method testedMethod)
执行测试方法开始的事件

参数:
testedMethod - 测试方法
返回:
返回事件异常

executeAfterRunnedEvents

public static Throwable executeAfterRunnedEvents(Object testedObject,
                                                 Method testedMethod,
                                                 Throwable error)
执行测试方法完毕后的事件

参数:
testedMethod - 测试方法
error - 测试方法异常
返回:
返回事件异常

executeAfterMethodEvents

public static Throwable executeAfterMethodEvents(Object testedObject,
                                                 Method testedMethod)
执行teardown method事件

参数:
testedObject - 测试对象
testedMethod - 测试方法
返回:
事件异常

executeAfterClassEvents

public static Throwable executeAfterClassEvents(Object testedObject)
执行teardownClass的事件

参数:
testedObject - 测试对象
返回:
事件异常


Copyright © 2013. All rights reserved.