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

java.lang.Object
  extended by org.apache.maven.plugin.surefire.report.ConsoleOutputFileReporter
All Implemented Interfaces:
TestcycleConsoleOutputReceiver, ConsoleOutputReceiver

public class ConsoleOutputFileReporter
extends Object
implements TestcycleConsoleOutputReceiver

Surefire output consumer proxy that writes test output to a File for each test suite.

This class is not threadsafe, but can be serially handed off from thread to thread.

Author:
Kristian Rosenvold, Carlos Sanchez

Constructor Summary
ConsoleOutputFileReporter(File reportsDirectory, String reportNameSuffix)
           
 
Method Summary
 void close()
           
 void testSetCompleted(ReportEntry report)
           
 void testSetStarting(ReportEntry reportEntry)
           
 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

ConsoleOutputFileReporter

public ConsoleOutputFileReporter(File reportsDirectory,
                                 String reportNameSuffix)
Method Detail

testSetStarting

public void testSetStarting(ReportEntry reportEntry)
Specified by:
testSetStarting in interface TestcycleConsoleOutputReceiver

testSetCompleted

public void testSetCompleted(ReportEntry report)
                      throws ReporterException
Specified by:
testSetCompleted in interface TestcycleConsoleOutputReceiver
Throws:
ReporterException

close

public void close()
Specified by:
close in interface TestcycleConsoleOutputReceiver

writeTestOutput

public void writeTestOutput(byte[] buf,
                            int off,
                            int len,
                            boolean stdout)
Specified by:
writeTestOutput in interface ConsoleOutputReceiver


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