org.apache.maven.surefire.report
Class ConsoleOutputFileReporter
java.lang.Object
org.apache.maven.surefire.report.ConsoleOutputFileReporter
- All Implemented Interfaces:
- Reporter
public class ConsoleOutputFileReporter
- extends java.lang.Object
- implements Reporter
Surefire output consumer proxy that writes test output to a File for each test suite.
This class is not threadsafe, but can be encapsulated with a SynchronizedOutputConsumer. It may still be
accessed from different threads (serially).
- Since:
- 2.1
- Version:
- $Id: ConsoleOutputFileReporter.java 1204688 2011-11-21 20:25:19Z krosenvold $
- Author:
- Carlos Sanchez
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleOutputFileReporter
public ConsoleOutputFileReporter(java.io.File reportsDirectory)
ConsoleOutputFileReporter
public ConsoleOutputFileReporter(java.io.File reportsDirectory,
java.lang.String reportNameSuffix)
testSetStarting
public void testSetStarting(ReportEntry reportEntry)
- Specified by:
testSetStarting in interface Reporter
testSetCompleted
public void testSetCompleted(ReportEntry report)
throws ReporterException
- Specified by:
testSetCompleted in interface Reporter
- Throws:
ReporterException
writeMessage
public void writeMessage(byte[] b,
int off,
int len)
- Specified by:
writeMessage in interface Reporter
testStarting
public void testStarting(ReportEntry report)
- Specified by:
testStarting in interface Reporter
testSucceeded
public void testSucceeded(ReportEntry report)
- Specified by:
testSucceeded in interface Reporter
testSkipped
public void testSkipped(ReportEntry report)
- Specified by:
testSkipped in interface Reporter
testError
public void testError(ReportEntry report,
java.lang.String stdOut,
java.lang.String stdErr)
- Specified by:
testError in interface Reporter
testFailed
public void testFailed(ReportEntry report,
java.lang.String stdOut,
java.lang.String stdErr)
- Specified by:
testFailed in interface Reporter
writeMessage
public void writeMessage(java.lang.String message)
- Specified by:
writeMessage in interface Reporter
reset
public void reset()
- Specified by:
reset in interface Reporter
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.