|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.surefire.junitcore.ConcurrentReporterManager
public abstract class ConcurrentReporterManager
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,TestSet> |
classMethodCounts
|
protected boolean |
reportImmediately
|
Constructor Summary | |
---|---|
ConcurrentReporterManager(ReporterFactory reporterFactory,
boolean reportImmediately,
ReporterConfiguration reporterConfiguration,
java.util.Map<java.lang.String,TestSet> classMethodCounts)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<java.lang.String,TestSet> classMethodCounts
protected final boolean reportImmediately
Constructor Detail |
---|
public ConcurrentReporterManager(ReporterFactory reporterFactory, boolean reportImmediately, ReporterConfiguration reporterConfiguration, java.util.Map<java.lang.String,TestSet> classMethodCounts) throws TestSetFailedException
TestSetFailedException
Method Detail |
---|
public void testSetStarting(ReportEntry description)
Reporter
testSetStarting
in interface Reporter
description
- the report entry describing the testsetpublic void testSetCompleted(ReportEntry result) throws ReporterException
Reporter
testSetCompleted
in interface Reporter
result
- the report entry describing the testset
ReporterException
- When reporting failspublic void testFailed(ReportEntry failure)
Reporter
testFailed
in interface Reporter
failure
- The report entry to log forpublic void testError(ReportEntry failure)
Reporter
testError
in interface Reporter
failure
- The report entry to log forpublic void testSkipped(ReportEntry description)
testSkipped
in interface Reporter
public void testAssumptionFailure(ReportEntry failure)
Reporter
testAssumptionFailure
in interface Reporter
failure
- The report entry to log forpublic void testStarting(ReportEntry description)
Reporter
testStarting
in interface Reporter
description
- The report entry to log forpublic void testSucceeded(ReportEntry report)
Reporter
testSucceeded
in interface Reporter
report
- The report entry to log forpublic abstract void checkIfTestSetCanBeReported(TestSet testSetForTest)
public void writeFooter(java.lang.String footer)
writeFooter
in interface Reporter
public void writeMessage(java.lang.String message)
Reporter
writeMessage
in interface Reporter
message
- The message to write.public void reset()
Reporter
reset
in interface Reporter
public void testFailed(ReportEntry report, java.lang.String stdOut, java.lang.String stdErr)
Reporter
testFailed
in interface Reporter
report
- The report entry to log forstdOut
- standard output from the test casestdErr
- error output from the test casepublic void writeDetailMessage(java.lang.String message)
Reporter
writeDetailMessage
in interface Reporter
message
- The message to writepublic void testError(ReportEntry failure, java.lang.String out, java.lang.String err)
Reporter
testError
in interface Reporter
failure
- The report entry to log forout
- standard output from the test caseerr
- error output from the test caseprotected 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
TestSetFailedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |