org.powermock.modules.junit4.common.internal.impl
Class PowerMockJUnit4RunListener
java.lang.Object
org.junit.runner.notification.RunListener
org.powermock.modules.junit4.common.internal.impl.PowerMockJUnit4RunListener
public class PowerMockJUnit4RunListener
- extends org.junit.runner.notification.RunListener
Methods inherited from class org.junit.runner.notification.RunListener |
testAssumptionFailure, testRunFinished, testRunStarted, testStarted |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PowerMockJUnit4RunListener
public PowerMockJUnit4RunListener(ClassLoader mockClassLoader,
org.powermock.tests.utils.PowerMockTestNotifier powerMockTestNotifier)
testFinished
public void testFinished(org.junit.runner.Description description1)
throws Exception
- Performs clean up after each test. The
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.
- Overrides:
testFinished
in class org.junit.runner.notification.RunListener
- Throws:
Exception
getFailureCount
public int getFailureCount()
- Returns:
- The number of failed tests.
getIgnoreCount
public int getIgnoreCount()
- Returns:
- The number of successful tests.
testFailure
public void testFailure(org.junit.runner.notification.Failure failure)
throws Exception
- Overrides:
testFailure
in class org.junit.runner.notification.RunListener
- Throws:
Exception
testIgnored
public void testIgnored(org.junit.runner.Description description)
throws Exception
- Overrides:
testIgnored
in class org.junit.runner.notification.RunListener
- Throws:
Exception
Copyright © 2007-2012. All Rights Reserved.