public class PowerMockJUnit4RunListener
extends org.junit.runner.notification.RunListener
Constructor and Description |
---|
PowerMockJUnit4RunListener(ClassLoader mockClassLoader,
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(ClassLoader mockClassLoader, PowerMockTestNotifier powerMockTestNotifier)
public void testFinished(org.junit.runner.Description description1) throws 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
Exception
public int getFailureCount()
public int getIgnoreCount()
public void testFailure(org.junit.runner.notification.Failure failure) throws Exception
testFailure
in class org.junit.runner.notification.RunListener
Exception
Copyright © 2019. All rights reserved.