public class NbJUnit4Runner
extends org.junit.runners.BlockJUnit4ClassRunner
| 限定符和类型 | 字段和说明 |
|---|---|
protected ThreadLocal<org.nutz.boot.NbApp> |
appHolder |
protected Method |
createNbAppMethod |
protected List<Field> |
fields |
protected boolean |
hasIocBean |
| 构造器和说明 |
|---|
NbJUnit4Runner(Class<?> klass) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.nutz.boot.NbApp |
createNbApp()
子类应该覆盖这个方法,返回一个自定义mainClass的NbApp实例
|
protected Object |
createTest() |
protected org.nutz.ioc.Ioc |
getIoc() |
protected void |
runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier) |
collectInitializationErrors, computeTestMethods, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutprotected ThreadLocal<org.nutz.boot.NbApp> appHolder
protected boolean hasIocBean
protected Method createNbAppMethod
public NbJUnit4Runner(Class<?> klass) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorprotected void runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier)
runChild 在类中 org.junit.runners.BlockJUnit4ClassRunnerprotected org.nutz.boot.NbApp createNbApp()
protected Object createTest() throws Exception
createTest 在类中 org.junit.runners.BlockJUnit4ClassRunnerExceptionprotected org.nutz.ioc.Ioc getIoc()
Copyright © 2019. All rights reserved.