junitour
Class UnitourSummaryResultFormatter
java.lang.Object
junitour.UnitourSummaryResultFormatter
- All Implemented Interfaces:
- junit.framework.TestListener, org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter
public class UnitourSummaryResultFormatter
- extends java.lang.Object
- implements org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter
wrapper for SummaryJUnitResultFormatter which also handles the
JUnitour - unittests in endTestSuite to show the incomplete test count.
Based on the ANT Junit Formatter
SummaryJUnitResultFormatter
from ANT 1.5.3.1 (not very spectacular).
The most important fact is that we have to do some corrections on the
statistical values from the suite which also count failures and errors,
when they are incompletes, too.
created: by hostlows, at 30.10.2003/ 17:15:01
$Log$
Revision 1.2 2004/07/08 01:47:50 hostlows
cleanup, new build, license changed to mozilla license...
Revision 1.1 2003/11/25 21:37:23 hostlows
made it ant-compatible
- Version:
- $Revision: 26 $
- Author:
- $Author: hostlows $, created by Robert Hostlowsky
- See Also:
endTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest),
SummaryJUnitResultFormatter.endTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest)
|
Method Summary |
void |
addError(junit.framework.Test test,
java.lang.Throwable t)
|
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError assertionFailedError)
|
void |
addFailure(junit.framework.Test test,
java.lang.Throwable t)
|
void |
endTest(junit.framework.Test test)
|
void |
endTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
|
void |
set_output(java.io.OutputStream _out)
|
void |
setOutput(java.io.OutputStream out)
|
void |
setSystemError(java.lang.String err)
|
void |
setSystemOutput(java.lang.String _out)
|
void |
setWith_outAndErr(boolean value)
|
void |
startTest(junit.framework.Test test)
|
void |
startTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnitourSummaryResultFormatter
public UnitourSummaryResultFormatter()
set_output
public void set_output(java.io.OutputStream _out)
setSystemOutput
public void setSystemOutput(java.lang.String _out)
- Specified by:
setSystemOutput in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter
setSystemError
public void setSystemError(java.lang.String err)
- Specified by:
setSystemError in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter
setWith_outAndErr
public void setWith_outAndErr(boolean value)
addFailure
public void addFailure(junit.framework.Test test,
java.lang.Throwable t)
addError
public void addError(junit.framework.Test test,
java.lang.Throwable t)
- Specified by:
addError in interface junit.framework.TestListener
addFailure
public void addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError assertionFailedError)
- Specified by:
addFailure in interface junit.framework.TestListener
endTest
public void endTest(junit.framework.Test test)
- Specified by:
endTest in interface junit.framework.TestListener
startTest
public void startTest(junit.framework.Test test)
- Specified by:
startTest in interface junit.framework.TestListener
startTestSuite
public void startTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
- Specified by:
startTestSuite in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter
endTestSuite
public void endTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
throws org.apache.tools.ant.BuildException
- Specified by:
endTestSuite in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter
- Throws:
org.apache.tools.ant.BuildException
setOutput
public void setOutput(java.io.OutputStream out)
- Specified by:
setOutput in interface org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter
Copyright © 2005-2007. All Rights Reserved.