org.clapper.util.ant
Class JUnitSummaryFormatter

java.lang.Object
  extended by org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResultFormatter
      extended by org.clapper.util.ant.JUnitSummaryFormatter
All Implemented Interfaces:
junit.framework.TestListener, org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter

public class JUnitSummaryFormatter
extends org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResultFormatter

JUnit output formatter that summarizes the results slightly differently than the default summary formatter.

Version:
$Revision: 6735 $

Constructor Summary
JUnitSummaryFormatter()
          Creates a new instance of SummaryJUnitFormatter
 
Method Summary
 void endTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
          Extends the base class's method to display the test suite name before each summary result.
 void setOutput(java.io.OutputStream out)
          Set the output object.
 
Methods inherited from class org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResultFormatter
addError, addFailure, addFailure, endTest, setSystemError, setSystemOutput, setWithOutAndErr, startTest, startTestSuite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnitSummaryFormatter

public JUnitSummaryFormatter()
Creates a new instance of SummaryJUnitFormatter

Method Detail

setOutput

public void setOutput(java.io.OutputStream out)
Set the output object.

Specified by:
setOutput in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter
Overrides:
setOutput in class org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResultFormatter
Parameters:
out - the output object

endTestSuite

public void endTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
Extends the base class's method to display the test suite name before each summary result.

Specified by:
endTestSuite in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter
Overrides:
endTestSuite in class org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResultFormatter
Parameters:
suite - the test suite


Copyright © 2004-2007 Brian M. Clapper. All Rights Reserved.