Class ModifiedClassPathRunner

java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
org.springframework.cloud.test.ModifiedClassPathRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Orderable, org.junit.runner.manipulation.Sortable

@Deprecated public class ModifiedClassPathRunner extends org.junit.runners.BlockJUnit4ClassRunner
Deprecated.
A custom 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.
Author:
Andy Wilkinson
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object
    Deprecated.
     
    protected org.junit.runners.model.TestClass
    createTestClass(Class<?> testClass)
    Deprecated.
     

    Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner

    collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout

    Methods inherited from class org.junit.runners.ParentRunner

    childrenInvoker, classBlock, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolation

    Methods inherited from class org.junit.runner.Runner

    testCount

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModifiedClassPathRunner

      public ModifiedClassPathRunner(Class<?> testClass) throws org.junit.runners.model.InitializationError
      Deprecated.
      Throws:
      org.junit.runners.model.InitializationError
  • Method Details

    • createTestClass

      protected org.junit.runners.model.TestClass createTestClass(Class<?> testClass)
      Deprecated.
      Overrides:
      createTestClass in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
    • createTest

      protected Object createTest() throws Exception
      Deprecated.
      Overrides:
      createTest in class org.junit.runners.BlockJUnit4ClassRunner
      Throws:
      Exception