net.thucydides.junit.listeners
Class JUnitStepListener
java.lang.Object
org.junit.runner.notification.RunListener
net.thucydides.junit.listeners.JUnitStepListener
- Direct Known Subclasses:
- ParameterizedJUnitStepListener
public class JUnitStepListener
- extends org.junit.runner.notification.RunListener
Intercepts JUnit events and reports them to Thucydides.
| Methods inherited from class org.junit.runner.notification.RunListener |
testAssumptionFailure, testRunFinished, testRunStarted |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUnitStepListener
public JUnitStepListener(File outputDirectory,
Pages pages)
getBaseStepListener
public BaseStepListener getBaseStepListener()
testStarted
public void testStarted(org.junit.runner.Description description)
throws Exception
- Overrides:
testStarted in class org.junit.runner.notification.RunListener
- Throws:
Exception
testFinished
public void testFinished(org.junit.runner.Description description)
throws Exception
- Overrides:
testFinished in class org.junit.runner.notification.RunListener
- Throws:
Exception
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
getTestOutcomes
public List<TestOutcome> getTestOutcomes()
getError
public Throwable getError()
hasRecordedFailures
public boolean hasRecordedFailures()
resetStepFailures
public void resetStepFailures()
Copyright © 2011 Wakaleo Consulting. All Rights Reserved.