public class ModifiedClassPathRunner
extends org.junit.runners.BlockJUnit4ClassRunner
BlockJUnit4ClassRunner
that runs tests using a modified class path.
Entries are excluded from the class path using
@ClassPathExclusions
and overridden using
@ClassPathOverrides
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.Constructor and Description |
---|
ModifiedClassPathRunner(Class<?> testClass) |
Modifier and Type | Method and Description |
---|---|
protected Object |
createTest() |
protected org.junit.runners.model.TestClass |
createTestClass(Class<?> testClass) |
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
childrenInvoker, classBlock, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolation
public ModifiedClassPathRunner(Class<?> testClass) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError
protected org.junit.runners.model.TestClass createTestClass(Class<?> testClass)
createTestClass
in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.