public abstract class ConcurrentReporterManager extends java.lang.Object implements Reporter
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,TestSet> |
classMethodCounts |
protected boolean |
reportImmediately |
| Constructor and Description |
|---|
ConcurrentReporterManager(ReporterFactory reporterFactory,
boolean reportImmediately,
ReporterConfiguration reporterConfiguration,
java.util.Map<java.lang.String,TestSet> classMethodCounts) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
checkIfTestSetCanBeReported(TestSet testSetForTest) |
static ConcurrentReporterManager |
createInstance(java.util.Map<java.lang.String,TestSet> classMethodCounts,
ReporterFactory reporterManagerFactory,
ReporterConfiguration reporterConfiguration,
boolean parallelClasses,
boolean parallelBoth) |
protected void |
detachTestMethodFromThread() |
protected Reporter |
getReporterManager() |
protected org.apache.maven.surefire.junitcore.TestMethod |
getTestMethod() |
protected TestSet |
getTestSet(ReportEntry description) |
void |
reset()
Restores the instance of the reporter, making the instance re-usable for a subsequent run in the
same thread.
|
void |
testAssumptionFailure(ReportEntry failure)
Event fired when a test assumption failure was encountered.
|
void |
testError(ReportEntry failure)
Event fired when a test ended with an error (non anticipated problem)
|
void |
testError(ReportEntry failure,
java.lang.String out,
java.lang.String err)
Event fired when a test ended with an error (non anticipated problem)
|
void |
testFailed(ReportEntry failure)
Event fired when a test ended with a failure (anticipated problem)
|
void |
testFailed(ReportEntry report,
java.lang.String stdOut,
java.lang.String stdErr)
Event fired when a test ended with a failure (anticipated problem)
|
void |
testSetCompleted(ReportEntry result)
Indicates end of a given test-set
|
void |
testSetStarting(ReportEntry description)
Indicates the start of a given test-set
|
void |
testSkipped(ReportEntry description) |
void |
testStarting(ReportEntry description)
Event fired when a test is about to start
|
void |
testSucceeded(ReportEntry report)
Event fired when a test ended successfully
|
void |
writeDetailMessage(java.lang.String message)
Writes a detailed message that will not necessarily be displayed in all channels.
|
void |
writeFooter(java.lang.String footer) |
void |
writeMessage(java.lang.String message)
Writes a message that will be displayed in all free-text format reporters.
|
protected java.util.Map<java.lang.String,TestSet> classMethodCounts
protected final boolean reportImmediately
public ConcurrentReporterManager(ReporterFactory reporterFactory, boolean reportImmediately, ReporterConfiguration reporterConfiguration, java.util.Map<java.lang.String,TestSet> classMethodCounts) throws TestSetFailedException
TestSetFailedExceptionpublic void testSetStarting(ReportEntry description)
ReportertestSetStarting in interface Reporterdescription - the report entry describing the testsetpublic void testSetCompleted(ReportEntry result) throws ReporterException
ReportertestSetCompleted in interface Reporterresult - the report entry describing the testsetReporterException - When reporting failspublic void testFailed(ReportEntry failure)
ReportertestFailed in interface Reporterfailure - The report entry to log forpublic void testError(ReportEntry failure)
Reporterpublic void testSkipped(ReportEntry description)
testSkipped in interface Reporterpublic void testAssumptionFailure(ReportEntry failure)
ReportertestAssumptionFailure in interface Reporterfailure - The report entry to log forpublic void testStarting(ReportEntry description)
ReportertestStarting in interface Reporterdescription - The report entry to log forpublic void testSucceeded(ReportEntry report)
ReportertestSucceeded in interface Reporterreport - The report entry to log forpublic abstract void checkIfTestSetCanBeReported(TestSet testSetForTest)
public void writeFooter(java.lang.String footer)
writeFooter in interface Reporterpublic void writeMessage(java.lang.String message)
ReporterwriteMessage in interface Reportermessage - The message to write.public void reset()
Reporterpublic void testFailed(ReportEntry report, java.lang.String stdOut, java.lang.String stdErr)
ReportertestFailed in interface Reporterreport - The report entry to log forstdOut - standard output from the test casestdErr - error output from the test casepublic void writeDetailMessage(java.lang.String message)
ReporterwriteDetailMessage in interface Reportermessage - The message to writepublic void testError(ReportEntry failure, java.lang.String out, java.lang.String err)
Reporterprotected org.apache.maven.surefire.junitcore.TestMethod getTestMethod()
protected void detachTestMethodFromThread()
protected TestSet getTestSet(ReportEntry description)
protected Reporter getReporterManager()
public static ConcurrentReporterManager createInstance(java.util.Map<java.lang.String,TestSet> classMethodCounts, ReporterFactory reporterManagerFactory, ReporterConfiguration reporterConfiguration, boolean parallelClasses, boolean parallelBoth) throws TestSetFailedException
TestSetFailedExceptionCopyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.