|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.surefire.report.AbstractReporter
public abstract class AbstractReporter
Field Summary | |
---|---|
protected int |
completedCount
|
protected long |
endTime
|
protected int |
errors
|
protected int |
failures
|
protected static java.lang.String |
NL
|
protected int |
skipped
|
protected long |
startTime
|
protected long |
testSetStartTime
|
Constructor Summary | |
---|---|
protected |
AbstractReporter(java.lang.Boolean trimStackTrace)
|
Method Summary | |
---|---|
protected java.lang.String |
elapsedTimeAsString(long runTime)
|
java.util.Collection |
getErrorSources()
Gives the source(s) that causes the error(s). |
java.util.Collection |
getFailureSources()
Gives the source(s) that causes the failures(s). |
int |
getNumErrors()
Get the number of errors |
int |
getNumFailures()
Get the number of failures |
int |
getNumSkipped()
Get the number of tests skipped |
int |
getNumTests()
Get the number of tests |
protected java.lang.String |
getStackTrace(ReportEntry report)
Returns stacktrace as String. |
void |
reset()
|
void |
runAborted(ReportEntry report)
|
void |
runCompleted()
|
void |
runStarting(int testCount)
|
void |
runStopped()
|
void |
testError(ReportEntry report,
java.lang.String stdOut,
java.lang.String stdErr)
Event fired when a test ended with an error (non 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 |
testSetAborted(ReportEntry report)
|
void |
testSetCompleted(ReportEntry report)
|
void |
testSetStarting(ReportEntry report)
|
void |
testSkipped(ReportEntry report)
|
void |
testStarting(ReportEntry report)
Event fired when a test is about to start |
void |
testSucceeded(ReportEntry report)
Event fired when a test ended successfully |
void |
writeFooter(java.lang.String footer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.maven.surefire.report.Reporter |
---|
writeMessage |
Field Detail |
---|
protected int completedCount
protected int errors
protected int failures
protected long startTime
protected long endTime
protected static final java.lang.String NL
protected long testSetStartTime
protected int skipped
Constructor Detail |
---|
protected AbstractReporter(java.lang.Boolean trimStackTrace)
Method Detail |
---|
public void writeFooter(java.lang.String footer)
writeFooter
in interface Reporter
public void runStarting(int testCount)
runStarting
in interface Reporter
public void runCompleted()
runCompleted
in interface Reporter
public void runStopped()
runStopped
in interface Reporter
public void runAborted(ReportEntry report)
runAborted
in interface Reporter
public void testSetStarting(ReportEntry report) throws ReporterException
testSetStarting
in interface Reporter
ReporterException
public void testSetCompleted(ReportEntry report) throws ReporterException
testSetCompleted
in interface Reporter
ReporterException
public void testSetAborted(ReportEntry report)
testSetAborted
in interface Reporter
public java.util.Collection getFailureSources()
Reporter
getFailureSources
in interface Reporter
Reporter.getFailureSources()
public java.util.Collection getErrorSources()
Reporter
getErrorSources
in interface Reporter
Reporter.getErrorSources()
public void testStarting(ReportEntry report)
Reporter
testStarting
in interface Reporter
public void testSucceeded(ReportEntry report)
Reporter
testSucceeded
in interface Reporter
public void testSkipped(ReportEntry report)
testSkipped
in interface Reporter
public void testError(ReportEntry report, java.lang.String stdOut, java.lang.String stdErr)
Reporter
testError
in interface Reporter
stdOut
- standard output from the test casestdErr
- error output from the test casepublic void testFailed(ReportEntry report, java.lang.String stdOut, java.lang.String stdErr)
Reporter
testFailed
in interface Reporter
stdOut
- standard output from the test casestdErr
- error output from the test casepublic int getNumErrors()
Reporter
getNumErrors
in interface Reporter
public int getNumSkipped()
Reporter
getNumSkipped
in interface Reporter
public int getNumFailures()
Reporter
getNumFailures
in interface Reporter
public int getNumTests()
Reporter
getNumTests
in interface Reporter
public void reset()
reset
in interface Reporter
protected java.lang.String elapsedTimeAsString(long runTime)
protected java.lang.String getStackTrace(ReportEntry report)
report
- ReportEntry object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |