junitour
Class MyResultPrinter
java.lang.Object
junit.textui.ResultPrinter
junitour.MyResultPrinter
- All Implemented Interfaces:
- junit.framework.TestListener
public class MyResultPrinter
- extends junit.textui.ResultPrinter
extension to ResultPrinter, just to
created: by hostlows, at 08.10.2003/ 18:46:11
$Log$
Revision 1.7 2005/08/21 21:26:55 hostlows
added Java5 Annotations, more java-doc
Revision 1.6 2005/07/31 03:01:13 hostlows
just small typos an introducing a local variable
Revision 1.5 2004/12/04 21:59:17 hostlows
removed unused imports
Revision 1.4 2004/07/08 01:47:50 hostlows
cleanup, new build, license changed to mozilla license...
Revision 1.3 2003/11/25 00:23:09 hostlows
small javadoc fix
Revision 1.2 2003/11/13 02:44:50 hostlows
overloaded addFailure to check, if it is an Incomplete TestCase
Revision 1.1.1.1 2003/11/12 23:32:13 hostlows
Initial import.
Revision 1.1 2003/10/30 07:13:54 hostlows
First release, which can run as a TextUI-Testrunner and
produces an enhanced output: additionally prints the count of
incomplete Tests! It handles examination of incomplete Testcase over
different classloaders now!
- Version:
- $Revision: 62 $
- Author:
- $Author: hostlows $, created by Robert Hostlowsky
Method Summary |
void |
addError(junit.framework.Test test,
java.lang.Throwable t)
added switch: checks type of given throwable: if it's an IncompleteError then
adds test to the notimplemented tests, else calls super-method for normal handling. |
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
added switch: checks type of given throwable: if it's an IncompleteError then
adds test to the notimplemented tests, else calls super-method for normal handling. |
void |
addNotImplemented(junit.framework.Test test,
java.lang.Throwable t)
logs an incomplete test by printing 'I'. |
protected void |
printFooter(junit.framework.TestResult result)
|
protected void |
printFooter(TourTestResult result)
|
Methods inherited from class junit.textui.ResultPrinter |
elapsedTimeAsString, endTest, getWriter, printDefect, printDefectHeader, printDefects, printDefectTrace, printErrors, printFailures, printHeader, startTest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MyResultPrinter
public MyResultPrinter(java.io.PrintStream writer)
printFooter
protected void printFooter(TourTestResult result)
printFooter
protected void printFooter(junit.framework.TestResult result)
- Overrides:
printFooter
in class junit.textui.ResultPrinter
addError
public void addError(junit.framework.Test test,
java.lang.Throwable t)
- added switch: checks type of given throwable: if it's an IncompleteError then
adds test to the notimplemented tests, else calls super-method for normal handling.
- Specified by:
addError
in interface junit.framework.TestListener
- Overrides:
addError
in class junit.textui.ResultPrinter
- See Also:
TestListener.addError(junit.framework.Test, Throwable)
,
ResultPrinter.addError(junit.framework.Test, java.lang.Throwable)
addFailure
public void addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
- added switch: checks type of given throwable: if it's an IncompleteError then
adds test to the notimplemented tests, else calls super-method for normal handling.
- Specified by:
addFailure
in interface junit.framework.TestListener
- Overrides:
addFailure
in class junit.textui.ResultPrinter
- See Also:
TestListener.addFailure(junit.framework.Test, junit.framework.AssertionFailedError)
addNotImplemented
public void addNotImplemented(junit.framework.Test test,
java.lang.Throwable t)
- logs an incomplete test by printing 'I'.
- Parameters:
test
- unusedt
- unused
Copyright © 2005-2007. All Rights Reserved.