org.test4j.junit
类 Test4JRunner

java.lang.Object
  继承者 org.junit.runner.Runner
      继承者 org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
          继承者 org.junit.runners.BlockJUnit4ClassRunner
              继承者 org.test4j.junit.Test4JRunner
所有已实现的接口:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class Test4JRunner
extends org.junit.runners.BlockJUnit4ClassRunner


构造方法摘要
Test4JRunner(Class testClass)
          Creates a test runner that runs all test methods in the given class.
 
方法摘要
protected  org.junit.runners.model.Statement childrenInvoker(org.junit.runner.notification.RunNotifier notifier)
           
protected  List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
          
构造有参和无参的测试方法列表
protected  Object createTest()
           
protected  TestListener getTestListener()
           
protected  org.junit.runners.model.Statement methodBlock(org.junit.runners.model.FrameworkMethod method)
           
 org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method, Object test)
           
protected  String testName(org.junit.runners.model.FrameworkMethod method)
           
 
从类 org.junit.runners.BlockJUnit4ClassRunner 继承的方法
collectInitializationErrors, describeChild, getChildren, getTestRules, possiblyExpectingExceptions, rules, runChild, validateConstructor, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
 
从类 org.junit.runners.ParentRunner 继承的方法
classBlock, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
 
从类 org.junit.runner.Runner 继承的方法
testCount
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Test4JRunner

public Test4JRunner(Class testClass)
             throws org.junit.runners.model.InitializationError
Creates a test runner that runs all test methods in the given class.

参数:
testClass - the class, not null
抛出:
org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError
方法详细信息

createTest

protected Object createTest()
                     throws Exception
覆盖:
org.junit.runners.BlockJUnit4ClassRunner 中的 createTest
抛出:
Exception

childrenInvoker

protected org.junit.runners.model.Statement childrenInvoker(org.junit.runner.notification.RunNotifier notifier)
覆盖:
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod> 中的 childrenInvoker

methodBlock

protected org.junit.runners.model.Statement methodBlock(org.junit.runners.model.FrameworkMethod method)
覆盖:
org.junit.runners.BlockJUnit4ClassRunner 中的 methodBlock

methodInvoker

public org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method,
                                                       Object test)
覆盖:
org.junit.runners.BlockJUnit4ClassRunner 中的 methodInvoker

testName

protected String testName(org.junit.runners.model.FrameworkMethod method)
覆盖:
org.junit.runners.BlockJUnit4ClassRunner 中的 testName

computeTestMethods

protected List<org.junit.runners.model.FrameworkMethod> computeTestMethods()

构造有参和无参的测试方法列表

覆盖:
org.junit.runners.BlockJUnit4ClassRunner 中的 computeTestMethods

getTestListener

protected TestListener getTestListener()
返回:
The test listener


Copyright © 2013. All rights reserved.