Class PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
java.lang.Object
org.junit.internal.runners.MethodRoadie
org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
- Direct Known Subclasses:
PowerMockJUnit47RunnerDelegateImpl.PowerMockJUnit47MethodRunner
- Enclosing class:
- PowerMockJUnit44RunnerDelegateImpl
protected class PowerMockJUnit44RunnerDelegateImpl.PowerMockJUnit44MethodRunner
extends org.junit.internal.runners.MethodRoadie
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final Object
protected final org.junit.internal.runners.TestMethod
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PowerMockJUnit44MethodRunner
(Object testInstance, org.junit.internal.runners.TestMethod method, org.junit.runner.notification.RunNotifier notifier, org.junit.runner.Description description, boolean extendsFromTestCase) -
Method Summary
Modifier and TypeMethodDescriptionvoid
executeTest
(Method method, Object testInstance, Runnable test) private String
getExpectedExceptionName
(org.junit.internal.runners.TestMethod fTestMethod) protected void
handleException
(org.junit.internal.runners.TestMethod testMethod, Throwable actualFailure) private void
handleInvocationTargetException
(org.junit.internal.runners.TestMethod testMethod, InvocationTargetException e) void
protected void
Methods inherited from class org.junit.internal.runners.MethodRoadie
addFailure, run, runTest
-
Field Details
-
testInstance
-
extendsFromTestCase
private final boolean extendsFromTestCase -
testMethod
protected final org.junit.internal.runners.TestMethod testMethod
-
-
Constructor Details
-
PowerMockJUnit44MethodRunner
protected PowerMockJUnit44MethodRunner(Object testInstance, org.junit.internal.runners.TestMethod method, org.junit.runner.notification.RunNotifier notifier, org.junit.runner.Description description, boolean extendsFromTestCase)
-
-
Method Details
-
runBeforesThenTestThenAfters
- Overrides:
runBeforesThenTestThenAfters
in classorg.junit.internal.runners.MethodRoadie
-
executeTest
-
runTestMethod
protected void runTestMethod()- Overrides:
runTestMethod
in classorg.junit.internal.runners.MethodRoadie
-
handleInvocationTargetException
private void handleInvocationTargetException(org.junit.internal.runners.TestMethod testMethod, InvocationTargetException e) throws Exception - Throws:
Exception
-
handleException
protected void handleException(org.junit.internal.runners.TestMethod testMethod, Throwable actualFailure) -
getExpectedExceptionName
private String getExpectedExceptionName(org.junit.internal.runners.TestMethod fTestMethod) throws Exception - Throws:
Exception
-