|
||||||||||
| 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)
|
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 Reporterpublic void runStarting(int testCount)
runStarting in interface Reporterpublic void runCompleted()
runCompleted in interface Reporterpublic void runStopped()
runStopped in interface Reporterpublic void runAborted(ReportEntry report)
runAborted in interface Reporter
public void testSetStarting(ReportEntry report)
throws ReporterException
testSetStarting in interface ReporterReporterException
public void testSetCompleted(ReportEntry report)
throws ReporterException
testSetCompleted in interface ReporterReporterExceptionpublic void testSetAborted(ReportEntry report)
testSetAborted in interface Reporterpublic void testStarting(ReportEntry report)
Reporter
testStarting in interface Reporterpublic void testSucceeded(ReportEntry report)
Reporter
testSucceeded in interface Reporterpublic 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 ReporterstdOut - standard output from the test casestdErr - error output from the test case
public void testFailed(ReportEntry report,
java.lang.String stdOut,
java.lang.String stdErr)
Reporter
testFailed in interface ReporterstdOut - standard output from the test casestdErr - error output from the test casepublic int getNumErrors()
Reporter
getNumErrors in interface Reporterpublic int getNumSkipped()
Reporter
getNumSkipped in interface Reporterpublic int getNumFailures()
Reporter
getNumFailures in interface Reporterpublic int getNumTests()
Reporter
getNumTests in interface Reporterpublic void reset()
reset in interface Reporterprotected 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 | |||||||||