org.powermock.modules.junit4.legacy.internal.impl.testcaseworkaround
Class PowerMockJUnit4LegacyTestClassMethodsRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.internal.runners.TestClassMethodsRunner
          extended by org.powermock.modules.junit4.legacy.internal.impl.testcaseworkaround.PowerMockJUnit4LegacyTestClassMethodsRunner
All Implemented Interfaces:
org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class PowerMockJUnit4LegacyTestClassMethodsRunner
extends org.junit.internal.runners.TestClassMethodsRunner

Since TestClassMethodsRunner creates a new instance of TestInterceptor in its constructor we need to manually lookup the additional methods that should be added when extending from TestCase.


Constructor Summary
PowerMockJUnit4LegacyTestClassMethodsRunner(Class<?> klass, PowerMockTestListener[] powerMockTestListeners)
           
 
Method Summary
protected  org.junit.internal.runners.TestMethodRunner createMethodRunner(Object test, Method method, org.junit.runner.notification.RunNotifier notifier)
           
 void run(org.junit.runner.notification.RunNotifier notifier)
           
 
Methods inherited from class org.junit.internal.runners.TestClassMethodsRunner
createTest, filter, getDescription, getName, getTestClass, invokeTestMethod, methodDescription, sort, testName
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PowerMockJUnit4LegacyTestClassMethodsRunner

public PowerMockJUnit4LegacyTestClassMethodsRunner(Class<?> klass,
                                                   PowerMockTestListener[] powerMockTestListeners)
Method Detail

createMethodRunner

protected org.junit.internal.runners.TestMethodRunner createMethodRunner(Object test,
                                                                         Method method,
                                                                         org.junit.runner.notification.RunNotifier notifier)
Overrides:
createMethodRunner in class org.junit.internal.runners.TestClassMethodsRunner

run

public void run(org.junit.runner.notification.RunNotifier notifier)
Overrides:
run in class org.junit.internal.runners.TestClassMethodsRunner


Copyright © 2007-2014. All Rights Reserved.