org.powermock.modules.junit4.internal.impl
Class PowerMockJUnit49RunnerDelegateImpl.PowerMockJUnit49MethodRunner
java.lang.Object
org.junit.internal.runners.MethodRoadie
org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
org.powermock.modules.junit4.internal.impl.PowerMockJUnit49RunnerDelegateImpl.PowerMockJUnit49MethodRunner
- Enclosing class:
- PowerMockJUnit49RunnerDelegateImpl
protected class PowerMockJUnit49RunnerDelegateImpl.PowerMockJUnit49MethodRunner
- extends PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
Method Summary |
void |
executeTest(Method method,
Object testInstance,
Runnable test)
|
protected void |
handleException(org.junit.internal.runners.TestMethod testMethod,
Throwable actualFailure)
Since a JUnit 4.7 rule may potentially deal with "unexpected" exceptions we cannot handle
the exception before the rule has been completely evaluated. |
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 |
PowerMockJUnit49RunnerDelegateImpl.PowerMockJUnit49MethodRunner
protected PowerMockJUnit49RunnerDelegateImpl.PowerMockJUnit49MethodRunner(Object testInstance,
org.junit.internal.runners.TestMethod method,
org.junit.runner.notification.RunNotifier notifier,
org.junit.runner.Description description,
boolean extendsFromTestCase)
executeTest
public void executeTest(Method method,
Object testInstance,
Runnable test)
- Overrides:
executeTest
in class PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
handleException
protected void handleException(org.junit.internal.runners.TestMethod testMethod,
Throwable actualFailure)
- Since a JUnit 4.7 rule may potentially deal with "unexpected" exceptions we cannot handle
the exception before the rule has been completely evaluated. Thus we just store the
exception here and rethrow it after the test method has finished executing. In that way
the rule may get a chance to handle the exception appropriately.
- Overrides:
handleException
in class PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
Copyright © 2007-2012. All Rights Reserved.