|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.quilt.reports.XMLFormatter
Produce an XML document containing the test data for the run. This will in general contain the results of many tests, but only those resulting from one QuiltTest.
| Constructor Summary | |
XMLFormatter()
|
|
| Method Summary | |
void |
addError(junit.framework.Test test,
java.lang.Throwable t)
Method called when an unexpected error occurs. |
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
Method called when a failure (or unexpected error) occurs. |
void |
addFailure(junit.framework.Test test,
java.lang.Throwable t)
Method called when a failure (or unexpected error) occurs. |
void |
endTest(junit.framework.Test test)
Method called when a JUnit test ends. |
void |
endTestSuite(QuiltTest qt)
Method called at end of test run. |
protected static java.lang.String |
getTestName(junit.framework.Test test)
Root around in a junit Test and find a name, should there be one. |
void |
setFiltertrace(boolean b)
Enable filtering of Ant/Quilt/JUnit lines from stack traces. |
void |
setOutput(java.io.OutputStream out)
Set the output file. |
void |
setRunner(Runner testrunner)
Set the test runner to be used. |
void |
setSystemError(java.lang.String out)
Direct the error output. |
void |
setSystemOutput(java.lang.String out)
Direct standard output. |
void |
startTest(junit.framework.Test test)
Called at the beginning of a JUnit test. |
void |
startTestSuite(QuiltTest qt)
Method called at the beginning of the test run. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLFormatter()
| Method Detail |
protected static java.lang.String getTestName(junit.framework.Test test)
public void endTestSuite(QuiltTest qt)
throws org.apache.tools.ant.BuildException
endTestSuite in interface Formatterorg.apache.tools.ant.BuildExceptionpublic void setFiltertrace(boolean b)
setFiltertrace in interface Formatterpublic void setOutput(java.io.OutputStream out)
setOutput in interface Formatterpublic void setRunner(Runner testrunner)
setRunner in interface Formatterpublic void setSystemError(java.lang.String out)
setSystemError in interface Formatterpublic void setSystemOutput(java.lang.String out)
setSystemOutput in interface Formatterpublic void startTestSuite(QuiltTest qt)
startTestSuite in interface Formatter
public void addError(junit.framework.Test test,
java.lang.Throwable t)
addError in interface junit.framework.TestListener
public void addFailure(junit.framework.Test test,
java.lang.Throwable t)
public void addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
addFailure in interface junit.framework.TestListenerpublic void endTest(junit.framework.Test test)
endTest in interface junit.framework.TestListenerpublic void startTest(junit.framework.Test test)
startTest in interface junit.framework.TestListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||