Class PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected PowerMockJUnit44MethodRunner​(java.lang.Object testInstance, org.junit.internal.runners.TestMethod method, org.junit.runner.notification.RunNotifier notifier, org.junit.runner.Description description, boolean extendsFromTestCase)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void executeTest​(java.lang.reflect.Method method, java.lang.Object testInstance, java.lang.Runnable test)  
      private java.lang.String getExpectedExceptionName​(org.junit.internal.runners.TestMethod fTestMethod)  
      protected void handleException​(org.junit.internal.runners.TestMethod testMethod, java.lang.Throwable actualFailure)  
      private void handleInvocationTargetException​(org.junit.internal.runners.TestMethod testMethod, java.lang.reflect.InvocationTargetException e)  
      void runBeforesThenTestThenAfters​(java.lang.Runnable test)  
      protected void runTestMethod()  
      • Methods inherited from class org.junit.internal.runners.MethodRoadie

        addFailure, run, runTest
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • testInstance

        private final java.lang.Object testInstance
      • extendsFromTestCase

        private final boolean extendsFromTestCase
      • testMethod

        protected final org.junit.internal.runners.TestMethod testMethod
    • Constructor Detail

      • PowerMockJUnit44MethodRunner

        protected PowerMockJUnit44MethodRunner​(java.lang.Object testInstance,
                                               org.junit.internal.runners.TestMethod method,
                                               org.junit.runner.notification.RunNotifier notifier,
                                               org.junit.runner.Description description,
                                               boolean extendsFromTestCase)
    • Method Detail

      • runBeforesThenTestThenAfters

        public void runBeforesThenTestThenAfters​(java.lang.Runnable test)
        Overrides:
        runBeforesThenTestThenAfters in class org.junit.internal.runners.MethodRoadie
      • executeTest

        public void executeTest​(java.lang.reflect.Method method,
                                java.lang.Object testInstance,
                                java.lang.Runnable test)
      • runTestMethod

        protected void runTestMethod()
        Overrides:
        runTestMethod in class org.junit.internal.runners.MethodRoadie
      • handleInvocationTargetException

        private void handleInvocationTargetException​(org.junit.internal.runners.TestMethod testMethod,
                                                     java.lang.reflect.InvocationTargetException e)
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • handleException

        protected void handleException​(org.junit.internal.runners.TestMethod testMethod,
                                       java.lang.Throwable actualFailure)
      • getExpectedExceptionName

        private java.lang.String getExpectedExceptionName​(org.junit.internal.runners.TestMethod fTestMethod)
                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception