|
||||||||||
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 int |
errors
|
protected int |
failures
|
protected static String |
NL
|
protected int |
skipped
|
protected long |
testSetStartTime
|
Constructor Summary | |
---|---|
protected |
AbstractReporter(Boolean trimStackTrace)
|
protected |
AbstractReporter(ReporterConfiguration reporterConfiguration)
|
Method Summary | |
---|---|
protected void |
deleteIfExisting(File reportFile)
|
protected String |
elapsedTimeAsString(long runTime)
|
protected long |
getActualRunTime(ReportEntry reportEntry)
|
int |
getNumErrors()
|
int |
getNumFailures()
|
int |
getNumSkipped()
|
int |
getNumTests()
|
protected String |
getStackTrace(ReportEntry report)
Returns stacktrace as String. |
protected boolean |
isTimedOut()
|
void |
reset()
Restores the instance of the reporter, making the instance re-usable for a subsequent run in the same thread. |
void |
runCompleted()
|
void |
runStarting()
|
void |
testAssumptionFailure(ReportEntry report)
Event fired when a test assumption failure was encountered. |
void |
testError(ReportEntry report)
Event fired when a test ended with an error (non anticipated problem) |
void |
testError(ReportEntry report,
String stdOut,
String stdErr)
Event fired when a test ended with an error (non anticipated problem) |
void |
testFailed(ReportEntry report)
Event fired when a test ended with a failure (anticipated problem) |
void |
testFailed(ReportEntry report,
String stdOut,
String stdErr)
Event fired when a test ended with a failure (anticipated problem) |
void |
testSetCompleted(ReportEntry report)
Indicates end of a given test-set |
void |
testSetStarting(ReportEntry report)
Indicates the start of a given test-set |
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(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 |
---|
writeDetailMessage, writeMessage |
Methods inherited from interface org.apache.maven.surefire.report.ReportWriter |
---|
writeDetailMessage, writeMessage |
Field Detail |
---|
protected int completedCount
protected int errors
protected int failures
protected static final String NL
protected long testSetStartTime
protected int skipped
Constructor Detail |
---|
protected AbstractReporter(ReporterConfiguration reporterConfiguration)
protected AbstractReporter(Boolean trimStackTrace)
Method Detail |
---|
protected boolean isTimedOut()
public void writeFooter(String footer)
writeFooter
in interface Reporter
writeFooter
in interface ReportWriter
public void runStarting()
public void runCompleted()
public void testSetStarting(ReportEntry report) throws ReporterException
Reporter
testSetStarting
in interface Reporter
testSetStarting
in interface ReportWriter
report
- the report entry describing the testset
ReporterException
- When reporting failspublic void testSetCompleted(ReportEntry report) throws ReporterException
Reporter
testSetCompleted
in interface Reporter
testSetCompleted
in interface ReportWriter
report
- the report entry describing the testset
ReporterException
- When reporting failspublic void testStarting(ReportEntry report)
Reporter
testStarting
in interface Reporter
testStarting
in interface ReportWriter
report
- The report entry to log forpublic void testSucceeded(ReportEntry report)
Reporter
testSucceeded
in interface Reporter
testSucceeded
in interface ReportWriter
report
- The report entry to log forpublic void testSkipped(ReportEntry report)
testSkipped
in interface Reporter
testSkipped
in interface ReportWriter
public void testError(ReportEntry report, String stdOut, String stdErr)
Reporter
testError
in interface Reporter
testError
in interface ReportWriter
report
- The report entry to log forstdOut
- standard output from the test casestdErr
- error output from the test casepublic void testFailed(ReportEntry report, String stdOut, String stdErr)
Reporter
testFailed
in interface Reporter
testFailed
in interface ReportWriter
report
- The report entry to log forstdOut
- standard output from the test casestdErr
- error output from the test casepublic int getNumErrors()
public int getNumSkipped()
public int getNumFailures()
public int getNumTests()
public void reset()
Reporter
reset
in interface Reporter
reset
in interface ReportWriter
protected String elapsedTimeAsString(long runTime)
protected String getStackTrace(ReportEntry report)
report
- ReportEntry object.
protected long getActualRunTime(ReportEntry reportEntry)
public void testError(ReportEntry report)
Reporter
testError
in interface Reporter
testError
in interface ReportWriter
report
- The report entry to log forpublic void testFailed(ReportEntry report)
Reporter
testFailed
in interface Reporter
testFailed
in interface ReportWriter
report
- The report entry to log forpublic void testAssumptionFailure(ReportEntry report)
Reporter
testAssumptionFailure
in interface Reporter
report
- The report entry to log forprotected void deleteIfExisting(File reportFile)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |