org.test4j.module.inject
类 InjectModule.InjectTestListener

java.lang.Object
  继承者 org.test4j.module.core.TestListener
      继承者 org.test4j.module.inject.InjectModule.InjectTestListener
包容类:
InjectModule

protected class InjectModule.InjectTestListener
extends TestListener


构造方法摘要
protected InjectModule.InjectTestListener()
           
 
方法摘要
 void beforeRunning(Object testObject, Method testMethod)
          Invoked before the test but after the test setup (eg @Before) is run.
protected  String getName()
          监听器名称
 
从类 org.test4j.module.core.TestListener 继承的方法
afterClass, afterMethod, afterRunned, beforeClass, beforeMethod, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

InjectModule.InjectTestListener

protected InjectModule.InjectTestListener()
方法详细信息

beforeRunning

public void beforeRunning(Object testObject,
                          Method testMethod)
从类 TestListener 复制的描述
Invoked before the test but after the test setup (eg @Before) is run. This can be overridden to for example further initialize the test-fixture using values that were set during the test setup.
Phase
o setupClass (Object testObject)
o beforeMethod (Object testObject, Method testMethod)
o beforeMethodRunning (Object testObject, Method testMethod)
o afterMethodRunned (Object testObject, Method testMethod, Throwable testThrowable)
o afterMethod (Object testObject, Method testMethod)
o teardownClass (Object testObject)

覆盖:
TestListener 中的 beforeRunning
参数:
testObject - The test instance, not null
testMethod - The test method, not null

getName

protected String getName()
从类 TestListener 复制的描述
监听器名称

指定者:
TestListener 中的 getName
返回:


Copyright © 2013. All rights reserved.