protected class PowerMockJUnit47RunnerDelegateImpl.PowerMockJUnit47MethodRunner extends PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
Modifier and Type | Class and Description |
---|---|
private class |
PowerMockJUnit47RunnerDelegateImpl.PowerMockJUnit47MethodRunner.TestExecutorStatement |
Modifier and Type | Field and Description |
---|---|
private java.lang.Throwable |
potentialTestFailure |
testMethod
Modifier | Constructor and Description |
---|---|
protected |
PowerMockJUnit47MethodRunner(java.lang.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(java.lang.reflect.Method method,
java.lang.Object testInstance,
java.lang.reflect.Field field,
org.junit.runners.model.Statement lastStatement) |
private org.junit.runners.model.Statement |
createStatement(java.lang.reflect.Method method,
java.lang.Object testInstance,
java.lang.Runnable test,
java.util.Set<java.lang.reflect.Field> rules) |
private void |
evaluateStatement(org.junit.runners.model.Statement statement) |
void |
executeTest(java.lang.reflect.Method method,
java.lang.Object testInstance,
java.lang.Runnable test) |
private void |
executeTestInSuper(java.lang.reflect.Method method,
java.lang.Object testInstance,
java.lang.Runnable test) |
protected void |
handleException(org.junit.internal.runners.TestMethod testMethod,
java.lang.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(java.lang.Object testInstance, org.junit.internal.runners.TestMethod method, org.junit.runner.notification.RunNotifier notifier, org.junit.runner.Description description, boolean extendsFromTestCase)
public void executeTest(java.lang.reflect.Method method, java.lang.Object testInstance, java.lang.Runnable test)
executeTest
in class PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
private org.junit.runners.model.Statement createStatement(java.lang.reflect.Method method, java.lang.Object testInstance, java.lang.Runnable test, java.util.Set<java.lang.reflect.Field> rules)
protected org.junit.runners.model.Statement applyRuleToLastStatement(java.lang.reflect.Method method, java.lang.Object testInstance, java.lang.reflect.Field field, org.junit.runners.model.Statement lastStatement) throws java.lang.IllegalAccessException
java.lang.IllegalAccessException
private void evaluateStatement(org.junit.runners.model.Statement statement)
protected void handleException(org.junit.internal.runners.TestMethod testMethod, java.lang.Throwable actualFailure)
handleException
in class PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
private void executeTestInSuper(java.lang.reflect.Method method, java.lang.Object testInstance, java.lang.Runnable test)