|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.glassfish.pfl.test.XMLJUnitReportWriter
public class XMLJUnitReportWriter
Prints XML output of the test to a specified Writer.
FormatterElement| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.glassfish.pfl.test.JUnitReportWriter |
|---|
JUnitReportWriter.TestCounts, JUnitReportWriter.TestDescription |
| Field Summary |
|---|
| Fields inherited from interface org.glassfish.pfl.test.XMLConstants |
|---|
ATTR_CLASSNAME, ATTR_ERRORS, ATTR_FAILURES, ATTR_ID, ATTR_MESSAGE, ATTR_NAME, ATTR_PACKAGE, ATTR_TESTS, ATTR_TIME, ATTR_TYPE, ATTR_VALUE, ERROR, FAILURE, HOSTNAME, PROPERTIES, PROPERTY, SYSTEM_ERR, SYSTEM_OUT, TESTCASE, TESTSUITE, TESTSUITES, TIMESTAMP |
| Constructor Summary | |
|---|---|
XMLJUnitReportWriter()
No arg constructor. |
|
XMLJUnitReportWriter(boolean filter)
|
|
| Method Summary | |
|---|---|
void |
addError(JUnitReportWriter.TestDescription test,
java.lang.Throwable t)
An error occurred. |
void |
addFailure(JUnitReportWriter.TestDescription test,
java.lang.Throwable t)
A failure occurred. |
void |
endTest(JUnitReportWriter.TestDescription test)
A test ended. |
void |
endTest(JUnitReportWriter.TestDescription test,
long duration)
A test ended. |
org.w3c.dom.Element |
endTestHelper(JUnitReportWriter.TestDescription test)
|
JUnitReportWriter.TestCounts |
endTestSuite()
The whole testsuite ended. |
void |
setOutput(java.io.OutputStream out)
Sets the stream the formatter is supposed to write its results to. |
void |
setSystemError(java.lang.String out)
This is what the test has written to System.err |
void |
setSystemOutput(java.lang.String out)
This is what the test has written to System.out |
void |
startTest(JUnitReportWriter.TestDescription t)
A test started. |
void |
startTestSuite(java.lang.String name,
java.util.Properties props)
The whole testsuite started. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLJUnitReportWriter()
public XMLJUnitReportWriter(boolean filter)
| Method Detail |
|---|
public void setOutput(java.io.OutputStream out)
JUnitReportWriter
setOutput in interface JUnitReportWriterout - the output stream to use.public void setSystemOutput(java.lang.String out)
JUnitReportWriter
setSystemOutput in interface JUnitReportWriterout - the string to write.public void setSystemError(java.lang.String out)
JUnitReportWriter
setSystemError in interface JUnitReportWriterout - the string to write.
public void startTestSuite(java.lang.String name,
java.util.Properties props)
JUnitReportWriter
startTestSuite in interface JUnitReportWriterpublic JUnitReportWriter.TestCounts endTestSuite()
JUnitReportWriter
endTestSuite in interface JUnitReportWriterpublic void startTest(JUnitReportWriter.TestDescription t)
JUnitReportWriter
startTest in interface JUnitReportWriter
public void endTest(JUnitReportWriter.TestDescription test,
long duration)
JUnitReportWriter
endTest in interface JUnitReportWriterpublic void endTest(JUnitReportWriter.TestDescription test)
JUnitReportWriter
endTest in interface JUnitReportWriterpublic org.w3c.dom.Element endTestHelper(JUnitReportWriter.TestDescription test)
public void addFailure(JUnitReportWriter.TestDescription test,
java.lang.Throwable t)
JUnitReportWriter
addFailure in interface JUnitReportWriter
public void addError(JUnitReportWriter.TestDescription test,
java.lang.Throwable t)
JUnitReportWriter
addError in interface JUnitReportWriter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||