public class JUnitXMLReporting extends TestReporting
| Constructor and Description |
|---|
JUnitXMLReporting() |
| Modifier and Type | Method and Description |
|---|---|
void |
finishedTestCase(UnitTest test,
boolean passed)
Invoked when a unit test has completed
|
void |
logException(Throwable err)
Indicates an error from the current test case
|
void |
logMessage(String message)
Indicates a message from the current test case
|
void |
startingTestCase(UnitTest test)
Invoked when a unit test is started
|
void |
testExecutionFinished()
Callback to indicate the test execution has finished allowing
for a report to be generated if appropriate
|
void |
writeReport(OutputStream os)
Writes a test report to the given stream
|
getInstance, setInstancepublic void startingTestCase(UnitTest test)
startingTestCase in class TestReportingtest - the test casepublic void logMessage(String message)
logMessage in class TestReportingmessage - the messagepublic void logException(Throwable err)
logException in class TestReportingerr - the error messagepublic void finishedTestCase(UnitTest test, boolean passed)
finishedTestCase in class TestReportingtest - the test casepassed - true if the test passed and false otherwisepublic void writeReport(OutputStream os) throws IOException
writeReport in class TestReportingos - the destination streamIOExceptionpublic void testExecutionFinished()
testExecutionFinished in class TestReporting