public class PowerMockJUnit4RunListener
extends org.junit.runner.notification.RunListener
| Constructor and Description |
|---|
PowerMockJUnit4RunListener(java.lang.ClassLoader mockClassLoader,
org.powermock.tests.utils.PowerMockTestNotifier powerMockTestNotifier) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFailureCount() |
int |
getIgnoreCount() |
void |
testFailure(org.junit.runner.notification.Failure failure) |
void |
testFinished(org.junit.runner.Description description1)
Performs clean up after each test.
|
void |
testIgnored(org.junit.runner.Description description) |
public PowerMockJUnit4RunListener(java.lang.ClassLoader mockClassLoader,
org.powermock.tests.utils.PowerMockTestNotifier powerMockTestNotifier)
public void testFinished(org.junit.runner.Description description1)
throws java.lang.Exception
MockRepository.clear()
methods has to be called by the correct class loader for the state to be
cleared. Therefore it is invoked using reflection when the class is
loaded from the correct class loader.testFinished in class org.junit.runner.notification.RunListenerjava.lang.Exceptionpublic int getFailureCount()
public int getIgnoreCount()
public void testFailure(org.junit.runner.notification.Failure failure)
throws java.lang.Exception
testFailure in class org.junit.runner.notification.RunListenerjava.lang.Exceptionpublic void testIgnored(org.junit.runner.Description description)
throws java.lang.Exception
testIgnored in class org.junit.runner.notification.RunListenerjava.lang.Exception