类 InfraRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
cn.taketoday.test.context.junit4.JUnit4ClassRunner
cn.taketoday.test.context.junit4.InfraRunner
- 所有已实现的接口:
org.junit.runner.Describable,org.junit.runner.manipulation.Filterable,org.junit.runner.manipulation.Orderable,org.junit.runner.manipulation.Sortable
Runner is an alias for the JUnit4ClassRunner.
To use this class, simply annotate a JUnit 4 based test class with
@RunWith(Runner.class).
If you would like to use the TestContext Framework with a runner other than
this one, use InfraClassRule
and InfraMethodRule.
NOTE: This class requires JUnit 4.12 or higher.
- 从以下版本开始:
- 4.0
- 作者:
- Sam Brannen
- 另请参阅:
-
构造器概要
构造器构造器说明InfraRunner(Class<?> clazz) Construct a newRunnerand initialize aTestContextManagerto provide Infra testing functionality to standard JUnit 4 tests. -
方法概要
从类继承的方法 cn.taketoday.test.context.junit4.JUnit4ClassRunner
createTest, createTestContextManager, getDescription, getExpectedException, getInfraTimeout, getJUnitTimeout, getTestContextManager, isTestMethodIgnored, methodBlock, possiblyExpectingExceptions, run, runChild, withAfterClasses, withAfters, withAfterTestExecutionCallbacks, withBeforeClasses, withBefores, withBeforeTestExecutionCallbacks, withPotentialRepeat, withPotentialTimeout从类继承的方法 org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, isIgnored, methodInvoker, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor从类继承的方法 org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, createTestClass, filter, getName, getRunnerAnnotations, getTestClass, order, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withInterruptIsolation从类继承的方法 org.junit.runner.Runner
testCount
-
构造器详细资料
-
InfraRunner
Construct a newRunnerand initialize aTestContextManagerto provide Infra testing functionality to standard JUnit 4 tests.- 参数:
clazz- the test class to be run- 抛出:
org.junit.runners.model.InitializationError- 另请参阅:
-