org.apache.maven.surefire.report
Class ThreadLocalRunListener

java.lang.Object
  extended by org.apache.maven.surefire.report.ThreadLocalRunListener
All Implemented Interfaces:
RunListener

public class ThreadLocalRunListener
extends Object
implements RunListener

Ensures that the current thread has a RunListener instance attached, and forwards calls to it.

Author:
Kristian Rosenvold

Constructor Summary
ThreadLocalRunListener(ReporterFactory reporterFactory)
           
 
Method Summary
 RunListener getTarget()
           
 void testAssumptionFailure(ReportEntry report)
          Event fired when a test assumption failure was encountered.
 void testError(ReportEntry report)
          Event fired when a test ended with an error (non anticipated problem)
 void testFailed(ReportEntry report)
          Event fired when a test ended with a failure (anticipated problem)
 void testSetCompleted(ReportEntry report)
          Indicates end of a given test-set
 void testSetStarting(ReportEntry report)
          Indicates the start of a given test-set
 void testSkipped(ReportEntry report)
          Event fired when a test is skipped
 void testStarting(ReportEntry report)
          Event fired when a test is about to start
 void testSucceeded(ReportEntry report)
          Event fired when a test ended successfully
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalRunListener

public ThreadLocalRunListener(ReporterFactory reporterFactory)
Method Detail

getTarget

public RunListener getTarget()

testSetStarting

public void testSetStarting(ReportEntry report)
Description copied from interface: RunListener
Indicates the start of a given test-set

Specified by:
testSetStarting in interface RunListener
Parameters:
report - the report entry describing the testset

testSetCompleted

public void testSetCompleted(ReportEntry report)
Description copied from interface: RunListener
Indicates end of a given test-set

Specified by:
testSetCompleted in interface RunListener
Parameters:
report - the report entry describing the testset

testStarting

public void testStarting(ReportEntry report)
Description copied from interface: RunListener
Event fired when a test is about to start

Specified by:
testStarting in interface RunListener
Parameters:
report - The report entry to log for

testSucceeded

public void testSucceeded(ReportEntry report)
Description copied from interface: RunListener
Event fired when a test ended successfully

Specified by:
testSucceeded in interface RunListener
Parameters:
report - The report entry to log for

testAssumptionFailure

public void testAssumptionFailure(ReportEntry report)
Description copied from interface: RunListener
Event fired when a test assumption failure was encountered. An assumption failure indicates that the test is not relevant

Specified by:
testAssumptionFailure in interface RunListener
Parameters:
report - The report entry to log for

testError

public void testError(ReportEntry report)
Description copied from interface: RunListener
Event fired when a test ended with an error (non anticipated problem)

Specified by:
testError in interface RunListener
Parameters:
report - The report entry to log for

testFailed

public void testFailed(ReportEntry report)
Description copied from interface: RunListener
Event fired when a test ended with a failure (anticipated problem)

Specified by:
testFailed in interface RunListener
Parameters:
report - The report entry to log for

testSkipped

public void testSkipped(ReportEntry report)
Description copied from interface: RunListener
Event fired when a test is skipped

Specified by:
testSkipped in interface RunListener
Parameters:
report - The report entry to log for


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.