org.codehaus.groovy.grails.test.report.junit
Class XMLFormatter

java.lang.Object
  extended by org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter
      extended by org.codehaus.groovy.grails.test.report.junit.XMLFormatter
All Implemented Interfaces:
junit.framework.TestListener, org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter, org.apache.tools.ant.taskdefs.optional.junit.JUnitTaskMirror.JUnitResultFormatterMirror, org.apache.tools.ant.taskdefs.optional.junit.XMLConstants

public class XMLFormatter
extends org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter

JUnit XML formatter that sanitises the stack traces generated by tests.


Field Summary
 
Fields inherited from interface org.apache.tools.ant.taskdefs.optional.junit.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
XMLFormatter(File file)
           
 
Method Summary
 void addError(junit.framework.Test test, Throwable throwable)
           
 void addFailure(junit.framework.Test test, Throwable throwable)
           
 void setOutput(OutputStream out)
           
 
Methods inherited from class org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter
addFailure, endTest, endTestSuite, setSystemError, setSystemOutput, startTest, startTestSuite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLFormatter

public XMLFormatter(File file)
Method Detail

setOutput

public void setOutput(OutputStream out)
Specified by:
setOutput in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter
Specified by:
setOutput in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitTaskMirror.JUnitResultFormatterMirror
Overrides:
setOutput in class org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter

addFailure

public void addFailure(junit.framework.Test test,
                       Throwable throwable)
Overrides:
addFailure in class org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter

addError

public void addError(junit.framework.Test test,
                     Throwable throwable)
Specified by:
addError in interface junit.framework.TestListener
Overrides:
addError in class org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter


Copyright (c) 2005-2009 The Grails project