public class PowerMockJUnit4RunListener
extends org.junit.runner.notification.RunListener
Modifier and Type | Field and Description |
---|---|
private boolean |
currentTestSuccessful |
private int |
failureCount |
private int |
ignoreCount |
private java.lang.ClassLoader |
mockClassLoader |
private PowerMockTestNotifier |
powerMockTestNotifier |
Constructor and Description |
---|
PowerMockJUnit4RunListener(java.lang.ClassLoader mockClassLoader,
PowerMockTestNotifier powerMockTestNotifier) |
Modifier and Type | Method and Description |
---|---|
int |
getFailureCount() |
int |
getIgnoreCount() |
private void |
notifyListenersOfTestResult() |
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) |
private final java.lang.ClassLoader mockClassLoader
private int failureCount
private int ignoreCount
private boolean currentTestSuccessful
private final PowerMockTestNotifier powerMockTestNotifier
public PowerMockJUnit4RunListener(java.lang.ClassLoader mockClassLoader, 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.RunListener
java.lang.Exception
public 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.RunListener
java.lang.Exception
public void testIgnored(org.junit.runner.Description description) throws java.lang.Exception
testIgnored
in class org.junit.runner.notification.RunListener
java.lang.Exception
private void notifyListenersOfTestResult()