junitour
Class TourTestResult
java.lang.Object
junit.framework.TestResult
junitour.TourTestResult
public class TourTestResult
- extends junit.framework.TestResult
Extension to TestResult:
It collects all incomplete Test cases:
On any failure or error of any test case it decides wether
the failing assertion is a UnitTestIncompleteError.
created: by hostlows, at 01.09.2003 / 13:22:08
$Log$
Revision 1.4 2005/08/21 21:38:07 hostlows
more use of Java5 generics
Revision 1.3 2005/07/31 03:16:04 hostlows
using Java 5 generics for making code simpler: less casts, simpler for-loops
Revision 1.2 2004/07/08 01:47:50 hostlows
cleanup, new build, license changed to mozilla license...
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: 64 $, $Date: 2005-08-21 23:38:07 +0200 (So, 21 Aug 2005) $
- Author:
- $Author: hostlows $, created by Robert Hostlowsky
Fields inherited from class junit.framework.TestResult |
fErrors, fFailures, fListeners, fRunTests |
Method Summary |
void |
addError(junit.framework.Test test,
java.lang.Throwable t)
Adds an error to the list of errors. |
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
|
boolean |
allCompletlyImplemented()
flag: true, if no incomplete test case occured |
java.util.Enumeration<junit.framework.TestFailure> |
incompletesEnum()
Returns an Enumeration for the incompletes |
int |
notImplementedCount()
Gets the number of detected failures. |
Methods inherited from class junit.framework.TestResult |
addListener, endTest, errorCount, errors, failureCount, failures, removeListener, run, runCount, runProtected, shouldStop, startTest, stop, wasSuccessful |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fNotImplemented
protected java.util.Vector<junit.framework.TestFailure> fNotImplemented
STATUS_INCOMPLETE
public static final int STATUS_INCOMPLETE
- See Also:
- Constant Field Values
TourTestResult
public TourTestResult()
addError
public void addError(junit.framework.Test test,
java.lang.Throwable t)
- Adds an error to the list of errors. The passed in exception
caused the error.
- Overrides:
addError
in class junit.framework.TestResult
addFailure
public void addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
- Overrides:
addFailure
in class junit.framework.TestResult
allCompletlyImplemented
public boolean allCompletlyImplemented()
- flag: true, if no incomplete test case occured
notImplementedCount
public int notImplementedCount()
- Gets the number of detected failures.
incompletesEnum
public java.util.Enumeration<junit.framework.TestFailure> incompletesEnum()
- Returns an Enumeration for the incompletes
Copyright © 2005-2007. All Rights Reserved.