org.apache.maven.plugin.surefire.report
Class TestSetRunListener

java.lang.Object
  extended by org.apache.maven.plugin.surefire.report.TestSetRunListener
All Implemented Interfaces:
Reporter, org.apache.maven.surefire.report.ConsoleLogger, org.apache.maven.surefire.report.ConsoleOutputReceiver, org.apache.maven.surefire.report.RunListener

public class TestSetRunListener
extends Object
implements org.apache.maven.surefire.report.RunListener, Reporter, org.apache.maven.surefire.report.ConsoleOutputReceiver, org.apache.maven.surefire.report.ConsoleLogger

Reports data for a single test set.


Constructor Summary
TestSetRunListener(AbstractConsoleReporter consoleReporter, AbstractFileReporter fileReporter, XMLReporter xmlReporter, Reporter reporter, StatisticsReporter statisticsReporter, org.apache.maven.surefire.report.RunStatistics globalStats)
           
 
Method Summary
 void clearCapture()
           
 String getAsString(List<org.apache.maven.surefire.util.internal.ByteBuffer> byteBufferList)
           
 void info(String message)
           
 void reset()
          Restores the instance of the reporter, making the instance re-usable for a subsequent run in the same thread.
 void testAssumptionFailure(org.apache.maven.surefire.report.ReportEntry report)
           
 void testError(org.apache.maven.surefire.report.ReportEntry reportEntry)
           
 void testError(org.apache.maven.surefire.report.ReportEntry reportEntry, String stdOutLog, String stdErrLog)
          Event fired when a test ended with an error (non anticipated problem)
 void testFailed(org.apache.maven.surefire.report.ReportEntry reportEntry)
           
 void testFailed(org.apache.maven.surefire.report.ReportEntry reportEntry, String stdOutLog, String stdErrLog)
          Event fired when a test ended with a failure (anticipated problem)
 void testSetCompleted(org.apache.maven.surefire.report.ReportEntry report)
          Indicates end of a given test-set
 void testSetStarting(org.apache.maven.surefire.report.ReportEntry report)
          Indicates the start of a given test-set
 void testSkipped(org.apache.maven.surefire.report.ReportEntry report)
           
 void testStarting(org.apache.maven.surefire.report.ReportEntry report)
          Event fired when a test is about to start
 void testSucceeded(org.apache.maven.surefire.report.ReportEntry report)
          Event fired when a test ended successfully
 void writeMessage(byte[] b, int off, int len)
           
 void writeMessage(String message)
          Writes a message that will be displayed in all free-text format reporters.
 void writeTestOutput(byte[] buf, int off, int len, boolean stdout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSetRunListener

public TestSetRunListener(AbstractConsoleReporter consoleReporter,
                          AbstractFileReporter fileReporter,
                          XMLReporter xmlReporter,
                          Reporter reporter,
                          StatisticsReporter statisticsReporter,
                          org.apache.maven.surefire.report.RunStatistics globalStats)
Method Detail

info

public void info(String message)
Specified by:
info in interface org.apache.maven.surefire.report.ConsoleLogger

writeMessage

public void writeMessage(String message)
Description copied from interface: Reporter
Writes a message that will be displayed in all free-text format reporters. These messages will be output regardless, as opposed to #writeDetailMessage, which is controlled by reportFormat.

Specified by:
writeMessage in interface Reporter
Parameters:
message - The message to write.

writeMessage

public void writeMessage(byte[] b,
                         int off,
                         int len)
Specified by:
writeMessage in interface Reporter

writeTestOutput

public void writeTestOutput(byte[] buf,
                            int off,
                            int len,
                            boolean stdout)
Specified by:
writeTestOutput in interface org.apache.maven.surefire.report.ConsoleOutputReceiver

testSetStarting

public void testSetStarting(org.apache.maven.surefire.report.ReportEntry report)
Description copied from interface: Reporter
Indicates the start of a given test-set

Specified by:
testSetStarting in interface Reporter
Specified by:
testSetStarting in interface org.apache.maven.surefire.report.RunListener
Parameters:
report - the report entry describing the testset

clearCapture

public void clearCapture()

testSetCompleted

public void testSetCompleted(org.apache.maven.surefire.report.ReportEntry report)
Description copied from interface: Reporter
Indicates end of a given test-set

Specified by:
testSetCompleted in interface Reporter
Specified by:
testSetCompleted in interface org.apache.maven.surefire.report.RunListener
Parameters:
report - the report entry describing the testset

testStarting

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

Specified by:
testStarting in interface Reporter
Specified by:
testStarting in interface org.apache.maven.surefire.report.RunListener
Parameters:
report - The report entry to log for

testSucceeded

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

Specified by:
testSucceeded in interface Reporter
Specified by:
testSucceeded in interface org.apache.maven.surefire.report.RunListener
Parameters:
report - The report entry to log for

testError

public void testError(org.apache.maven.surefire.report.ReportEntry reportEntry)
Specified by:
testError in interface org.apache.maven.surefire.report.RunListener

testError

public void testError(org.apache.maven.surefire.report.ReportEntry reportEntry,
                      String stdOutLog,
                      String stdErrLog)
Description copied from interface: Reporter
Event fired when a test ended with an error (non anticipated problem)

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

testFailed

public void testFailed(org.apache.maven.surefire.report.ReportEntry reportEntry)
Specified by:
testFailed in interface org.apache.maven.surefire.report.RunListener

testFailed

public void testFailed(org.apache.maven.surefire.report.ReportEntry reportEntry,
                       String stdOutLog,
                       String stdErrLog)
Description copied from interface: Reporter
Event fired when a test ended with a failure (anticipated problem)

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

testSkipped

public void testSkipped(org.apache.maven.surefire.report.ReportEntry report)
Specified by:
testSkipped in interface Reporter
Specified by:
testSkipped in interface org.apache.maven.surefire.report.RunListener

testAssumptionFailure

public void testAssumptionFailure(org.apache.maven.surefire.report.ReportEntry report)
Specified by:
testAssumptionFailure in interface org.apache.maven.surefire.report.RunListener

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

getAsString

public String getAsString(List<org.apache.maven.surefire.util.internal.ByteBuffer> byteBufferList)


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