net.thucydides.junit.listeners
Class JUnitStepListener

Package class diagram package JUnitStepListener
java.lang.Object
  extended by org.junit.runner.notification.RunListener
      extended by 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.


Constructor Summary
JUnitStepListener(File outputDirectory)
           
JUnitStepListener(File outputDirectory, Pages pages)
           
 
Method Summary
 void close()
           
 BaseStepListener getBaseStepListener()
           
 Throwable getError()
           
 List<TestOutcome> getTestOutcomes()
           
 boolean hasRecordedFailures()
           
 void testFailure(org.junit.runner.notification.Failure failure)
           
 void testFinished(org.junit.runner.Description description)
           
 void testIgnored(org.junit.runner.Description description)
           
 void testRunFinished(org.junit.runner.Result result)
           
 void testRunStarted(org.junit.runner.Description description)
           
 void testStarted(org.junit.runner.Description description)
          Called when a test starts.
 
Methods inherited from class org.junit.runner.notification.RunListener
testAssumptionFailure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnitStepListener

public JUnitStepListener(File outputDirectory)

JUnitStepListener

public JUnitStepListener(File outputDirectory,
                         Pages pages)
Method Detail

getBaseStepListener

public BaseStepListener getBaseStepListener()

testRunStarted

public void testRunStarted(org.junit.runner.Description description)
                    throws Exception
Overrides:
testRunStarted in class org.junit.runner.notification.RunListener
Throws:
Exception

testRunFinished

public void testRunFinished(org.junit.runner.Result result)
                     throws Exception
Overrides:
testRunFinished in class org.junit.runner.notification.RunListener
Throws:
Exception

testStarted

public void testStarted(org.junit.runner.Description description)
Called when a test starts. We also need to start the test suite the first time, as the testRunStarted() method is not invoked for some reason.

Overrides:
testStarted in class org.junit.runner.notification.RunListener

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()

close

public void close()


Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.