org.apache.cactus.server.runner
class XMLFormatter

java.lang.Object
  |
  +--org.apache.cactus.server.runner.XMLFormatter
All Implemented Interfaces:
TestListener, XMLConstants
Known Advisors:
LogAspect

public class XMLFormatter
extends java.lang.Object
implements TestListener, XMLConstants

Format the test results in XML.

Version:
$Id: XMLFormatter.java,v 1.4 2002/07/28 13:38:41 vmassol Exp $
Author:
Vincent Massol

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(Test theTest, Throwable theThrowable)
           Affected by: LogAspect
 void addFailure(Test theTest, AssertionFailedError theError)
           Affected by: LogAspect
 void endTest(Test theTest)
           Affected by: LogAspect
 String getSuiteClassName()
           
 String getTotalDurationAsString()
           
static String replace(String theBaseString, char theChar, String theNewString)
           Affected by: LogAspect
 void setSuiteClassName(String theSuiteClassName)
           Affected by: LogAspect
 void setTotalDuration(long theDuration)
           Affected by: LogAspect
 void setXslFileName(String theXslFileName)
           Affected by: LogAspect
 void startTest(Test theTest)
           Affected by: LogAspect
 String toXML(TestResult theResult)
           Affected by: LogAspect
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLFormatter

public XMLFormatter()
Method Detail

addError

public void addError(Test theTest,
                     Throwable theThrowable)
Specified by:
addError in interface TestListener
Affected by:
around() in LogAspect.

addFailure

public void addFailure(Test theTest,
                       AssertionFailedError theError)
Specified by:
addFailure in interface TestListener
Affected by:
around() in LogAspect.

endTest

public void endTest(Test theTest)
Specified by:
endTest in interface TestListener
Affected by:
around() in LogAspect.

getSuiteClassName

public String getSuiteClassName()

getTotalDurationAsString

public String getTotalDurationAsString()

replace

public static String replace(String theBaseString,
                             char theChar,
                             String theNewString)
Affected by:
around() in LogAspect.

setSuiteClassName

public void setSuiteClassName(String theSuiteClassName)
Affected by:
around() in LogAspect.

setTotalDuration

public void setTotalDuration(long theDuration)
Affected by:
around() in LogAspect.

setXslFileName

public void setXslFileName(String theXslFileName)
Affected by:
around() in LogAspect.

startTest

public void startTest(Test theTest)
Specified by:
startTest in interface TestListener
Affected by:
around() in LogAspect.

toXML

public String toXML(TestResult theResult)
Affected by:
around() in LogAspect.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.