org.apache.maven.surefire.report
Class AbstractReporter

java.lang.Object
  extended by org.apache.maven.surefire.report.AbstractReporter
All Implemented Interfaces:
Reporter
Direct Known Subclasses:
AbstractTextReporter, XMLReporter

public abstract class AbstractReporter
extends Object
implements Reporter

Version:
$Id: AbstractReporter.java 1081527 2011-03-14 19:31:34Z krosenvold $
Author:
Jason van Zyl

Method Summary
 void reset()
          Restores the instance of the reporter, making the instance re-usable for a subsequent run in the same thread.
 void runCompleted()
           
 void runStarting()
           
 void testAssumptionFailure(ReportEntry report)
           
 void testError(ReportEntry report)
          Event fired when a test ended with an error (non anticipated problem)
 void testError(ReportEntry report, String stdOut, String stdErr)
          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 testFailed(ReportEntry report, String stdOut, String stdErr)
          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)
           
 void testStarting(ReportEntry report)
          Event fired when a test is about to start
 void testSucceeded(ReportEntry report)
          Event fired when a test ended successfully
 void writeFooter(String footer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.maven.surefire.report.Reporter
writeDetailMessage, writeMessage
 

Method Detail

writeFooter

public void writeFooter(String footer)
Specified by:
writeFooter in interface Reporter

runStarting

public void runStarting()

runCompleted

public void runCompleted()

testSetStarting

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

Specified by:
testSetStarting in interface Reporter
Parameters:
report - the report entry describing the testset
Throws:
ReporterException - When reporting fails

testSetCompleted

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

Specified by:
testSetCompleted in interface Reporter
Parameters:
report - the report entry describing the testset
Throws:
ReporterException - When reporting fails

testStarting

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

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

testSucceeded

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

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

testSkipped

public void testSkipped(ReportEntry report)
Specified by:
testSkipped in interface Reporter

testError

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

Specified by:
testError in interface Reporter
Parameters:
report - The report entry to log for
stdOut - standard output from the test case
stdErr - error output from the test case

testFailed

public void testFailed(ReportEntry report,
                       String stdOut,
                       String stdErr)
Description copied from interface: Reporter
Event fired when a test ended with a failure (anticipated problem)

Specified by:
testFailed in interface Reporter
Parameters:
report - The report entry to log for
stdOut - standard output from the test case
stdErr - error output from the test case

reset

public void reset()
Description copied from interface: Reporter
Restores the instance of the reporter, making the instance re-usable for a subsequent run in the same thread.

Specified by:
reset in interface Reporter

testError

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

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

testFailed

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

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

testAssumptionFailure

public void testAssumptionFailure(ReportEntry report)


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