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, setInstance
public void startingTestCase(UnitTest test)
startingTestCase
in class TestReporting
test
- the test casepublic void logMessage(String message)
logMessage
in class TestReporting
message
- the messagepublic void logException(Throwable err)
logException
in class TestReporting
err
- the error messagepublic void finishedTestCase(UnitTest test, boolean passed)
finishedTestCase
in class TestReporting
test
- the test casepassed
- true if the test passed and false otherwisepublic void writeReport(OutputStream os) throws IOException
writeReport
in class TestReporting
os
- the destination streamIOException
public void testExecutionFinished()
testExecutionFinished
in class TestReporting