org.apache.maven.surefire.report
Class AbstractConsoleReporter
java.lang.Object
org.apache.maven.surefire.report.AbstractReporter
org.apache.maven.surefire.report.AbstractTextReporter
org.apache.maven.surefire.report.AbstractConsoleReporter
- All Implemented Interfaces:
- Reporter
- Direct Known Subclasses:
- BriefConsoleReporter, ConsoleReporter, DetailedConsoleReporter
public abstract class AbstractConsoleReporter
- extends AbstractTextReporter
Base class for console reporters.
- Author:
- Brett Porter
Methods inherited from class org.apache.maven.surefire.report.AbstractTextReporter |
getElapsedTimeSummary, getOutput, getTestSetSummary, isTestSetCompletedMessage, setWriter, testError, testFailed, testSetCompleted, testSkipped, testSucceeded, writeMessage |
Methods inherited from class org.apache.maven.surefire.report.AbstractReporter |
elapsedTimeAsString, getErrorSources, getFailureSources, getNumErrors, getNumFailures, getNumSkipped, getNumTests, getStackTrace, reset, runCompleted, runStopped, testStarting, writeFooter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUFFER_SIZE
protected static final int BUFFER_SIZE
- See Also:
- Constant Field Values
AbstractConsoleReporter
protected AbstractConsoleReporter(java.lang.String format,
java.lang.Boolean trimStackTrace)
testSetStarting
public void testSetStarting(ReportEntry report)
throws ReporterException
- Specified by:
testSetStarting
in interface Reporter
- Overrides:
testSetStarting
in class AbstractTextReporter
- Throws:
ReporterException
runStarting
public void runStarting(int testCount)
- Specified by:
runStarting
in interface Reporter
- Overrides:
runStarting
in class AbstractReporter
writeHeading
public void writeHeading(java.lang.String message)
runAborted
public void runAborted(ReportEntry report)
- Specified by:
runAborted
in interface Reporter
- Overrides:
runAborted
in class AbstractReporter
testSetAborted
public void testSetAborted(ReportEntry report)
- Specified by:
testSetAborted
in interface Reporter
- Overrides:
testSetAborted
in class AbstractReporter
getTestSetStartingMessage
public static java.lang.String getTestSetStartingMessage(ReportEntry report)
- Get the test set starting message for a report.
eg. "Running org.foo.BarTest ( of group )"
- Parameters:
report
- report whose test set is starting
- Returns:
- the message
parseTestSetStartingMessage
public static ReportEntry parseTestSetStartingMessage(java.lang.String message)
- Parses a Surefire test set starting message into a
ReportEntry
object.
Only name and group will be set if applicable.
- Parameters:
message
-
- Returns:
- the parsed
ReportEntry
isTestSetStartingMessage
public static boolean isTestSetStartingMessage(java.lang.String message)
- Check if the String passed as argument is a "test starting" message.
If so it can be passed to
parseTestSetStartingMessage(String)
- Parameters:
message
- the message to check
- Returns:
- true if it is a "test starting" message
Copyright © 2004-2008 Apache Software Foundation. All Rights Reserved.