类 ModifiedClassPathRunner
- java.lang.Object
- org.junit.runner.Runner
- org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
- org.junit.runners.BlockJUnit4ClassRunner
- org.springframework.boot.junit.runner.classpath.ModifiedClassPathRunner
- 所有已实现的接口:
org.junit.runner.Describable
,org.junit.runner.manipulation.Filterable
,org.junit.runner.manipulation.Sortable
public class ModifiedClassPathRunner extends org.junit.runners.BlockJUnit4ClassRunner
A customBlockJUnit4ClassRunner
that runs tests using a modified class path. Entries are excluded from the class path usingClassPathExclusions
and overridden usingClassPathOverrides
on the test class. A class loader is created with the customized class path and is used both to load the test class and as the thread context class loader while the test is being run.
构造器概要
构造器 构造器 说明 ModifiedClassPathRunner(Class<?> testClass)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected Object
createTest()
protected org.junit.runners.model.TestClass
createTestClass(Class<?> testClass)
从类继承的方法 org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
构造器详细资料
ModifiedClassPathRunner
public ModifiedClassPathRunner(Class<?> testClass) throws org.junit.runners.model.InitializationError
- 抛出:
org.junit.runners.model.InitializationError
方法详细资料
createTestClass
protected org.junit.runners.model.TestClass createTestClass(Class<?> testClass)
- 覆盖:
createTestClass
在类中org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
createTest
protected Object createTest() throws Exception
- 覆盖:
createTest
在类中org.junit.runners.BlockJUnit4ClassRunner
- 抛出:
Exception