protected class PowerMockJUnit47RunnerDelegateImpl.PowerMockJUnit47MethodRunner extends PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
testMethod
Modifier | Constructor and Description |
---|---|
protected |
PowerMockJUnit47MethodRunner(Object testInstance,
org.junit.internal.runners.TestMethod method,
org.junit.runner.notification.RunNotifier notifier,
org.junit.runner.Description description,
boolean extendsFromTestCase) |
Modifier and Type | Method and Description |
---|---|
protected org.junit.runners.model.Statement |
applyRuleToLastStatement(Method method,
Object testInstance,
Field field,
org.junit.runners.model.Statement lastStatement) |
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.
|
runBeforesThenTestThenAfters, runTestMethod
protected PowerMockJUnit47MethodRunner(Object testInstance, org.junit.internal.runners.TestMethod method, org.junit.runner.notification.RunNotifier notifier, org.junit.runner.Description description, boolean extendsFromTestCase)
public void executeTest(Method method, Object testInstance, Runnable test)
executeTest
in class PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
protected org.junit.runners.model.Statement applyRuleToLastStatement(Method method, Object testInstance, Field field, org.junit.runners.model.Statement lastStatement) throws IllegalAccessException
IllegalAccessException
protected void handleException(org.junit.internal.runners.TestMethod testMethod, Throwable actualFailure)
handleException
in class PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
Copyright © 2007–2016. All rights reserved.