Class DelegatingPowerMockRunner

java.lang.Object
org.junit.runner.Runner
org.powermock.modules.junit4.internal.impl.DelegatingPowerMockRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, PowerMockJUnitRunnerDelegate

public class DelegatingPowerMockRunner extends org.junit.runner.Runner implements PowerMockJUnitRunnerDelegate, org.junit.runner.manipulation.Filterable
  • Field Details

    • testClassName

      private final String testClassName
    • delegate

      private final org.junit.runner.Runner delegate
    • testClassLoader

      private final ClassLoader testClassLoader
    • testMethods

      private final Method[] testMethods
    • powerMockTestNotifier

      private final PowerMockTestNotifier powerMockTestNotifier
  • Constructor Details

  • Method Details

    • determineTestMethods

      private static Method[] determineTestMethods(Class<?> testClass, String[] testMethodNames)
    • createDelegate

      private static org.junit.runner.Runner createDelegate(Class<?> testClass) throws Exception
      Throws:
      Exception
    • withContextClassLoader

      private static <T> T withContextClassLoader(ClassLoader loader, Callable<T> callable) throws Exception
      Throws:
      Exception
    • run

      public void run(org.junit.runner.notification.RunNotifier notifier)
      Specified by:
      run in interface PowerMockJUnitRunnerDelegate
      Specified by:
      run in class org.junit.runner.Runner
    • getDescription

      public org.junit.runner.Description getDescription()
      Specified by:
      getDescription in interface org.junit.runner.Describable
      Specified by:
      getDescription in interface PowerMockJUnitRunnerDelegate
      Specified by:
      getDescription in class org.junit.runner.Runner
    • getTestCount

      public int getTestCount()
      Specified by:
      getTestCount in interface PowerMockJUnitRunnerDelegate
    • getTestClass

      public Class<?> getTestClass()
      Specified by:
      getTestClass in interface PowerMockJUnitRunnerDelegate
    • filter

      public void filter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException
      Specified by:
      filter in interface org.junit.runner.manipulation.Filterable
      Throws:
      org.junit.runner.manipulation.NoTestsRemainException