|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cactus.server.runner.XMLFormatter
Format the test results in XML.
| Field Summary | |
static java.lang.String[] |
DEFAULT_STACK_FILTER_PATTERNS
Default stack filter patterns. |
| Fields inherited from interface org.apache.cactus.server.runner.XMLConstants |
ATTR_ERRORS, ATTR_FAILURES, ATTR_MESSAGE, ATTR_NAME, ATTR_TESTS, ATTR_TIME, ATTR_TYPE, ERROR, FAILURE, TESTCASE, TESTSUITE, TESTSUITES |
| Constructor Summary | |
XMLFormatter()
|
|
| Method Summary | |
void |
addError(junit.framework.Test theTest,
java.lang.Throwable theThrowable)
Event called by the base test runner when the test fails with an error. |
void |
addFailure(junit.framework.Test theTest,
junit.framework.AssertionFailedError theError)
Event called by the base test runner when the test fails with a failure. |
void |
endTest(junit.framework.Test theTest)
Event called by the base test runner when the test ends. |
java.lang.String |
getSuiteClassName()
|
java.lang.String |
getTotalDurationAsString()
|
void |
setSuiteClassName(java.lang.String theSuiteClassName)
Sets the suite class name that was executed. |
void |
setTotalDuration(long theDuration)
Sets the duration it took to execute all the tests. |
void |
setXslFileName(java.lang.String theXslFileName)
Sets the XSL stylesheet file name to put in the returned XML string so that the browser will try to apply it (IE at least, I don't know about the others). |
void |
startTest(junit.framework.Test theTest)
Event called by the base test runner when the test starts. |
java.lang.String |
toXML(junit.framework.TestResult theResult)
Formats the test result as an XML string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String[] DEFAULT_STACK_FILTER_PATTERNS
| Constructor Detail |
public XMLFormatter()
| Method Detail |
public void setXslFileName(java.lang.String theXslFileName)
theXslFileName - the file name (relative to the webapp root)public java.lang.String getSuiteClassName()
public void setSuiteClassName(java.lang.String theSuiteClassName)
theSuiteClassName - the suite class namepublic java.lang.String getTotalDurationAsString()
public void setTotalDuration(long theDuration)
theDuration - the time it tookpublic java.lang.String toXML(junit.framework.TestResult theResult)
theResult - the test result object
public void startTest(junit.framework.Test theTest)
startTest in interface junit.framework.TestListenertheTest - the test object being executed
public void addError(junit.framework.Test theTest,
java.lang.Throwable theThrowable)
addError in interface junit.framework.TestListenertheTest - the test object that failedtheThrowable - the exception that was thrown
public void addFailure(junit.framework.Test theTest,
junit.framework.AssertionFailedError theError)
addFailure in interface junit.framework.TestListenertheTest - the test object that failedtheError - the exception that was thrownpublic void endTest(junit.framework.Test theTest)
endTest in interface junit.framework.TestListenertheTest - the test object being executed
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||