1 package junitour;
2
3 import junit.runner.BaseTestRunner;
4 import junit.framework.Test;
5
6 /**
7 * Specialized TestRunner which handles the case of incomplete testcases:
8 * Implementing UnitTestIncompleteListener it 'marks' incomplete test cases
9 * as INCOMPLETE when calling the Resultlistener.
10 * <pre>
11 * $Log$
12 package junitour;
13
14 import junit.runner.BaseTestRunner;
15 import junit.framework.Test;
16
17 /**
18 * Specialized TestRunner which handles the case of incomplete testcases:
19 * Implementing UnitTestIncompleteListener it 'marks' incomplete test cases
20 * as INCOMPLETE when calling the Resultlistener.
21 * <pre>
22 * Revision 1.5 2005/08/21 21:35:00 hostlows
23 package junitour;
24
25 import junit.runner.BaseTestRunner;
26 import junit.framework.Test;
27
28 /**
29 * Specialized TestRunner which handles the case of incomplete testcases:
30 * Implementing UnitTestIncompleteListener it 'marks' incomplete test cases
31 * as INCOMPLETE when calling the Resultlistener.
32 * <pre>
33 * javadoc
34 package junitour;
35
36 import junit.runner.BaseTestRunner;
37 import junit.framework.Test;
38
39 /**
40 * Specialized TestRunner which handles the case of incomplete testcases:
41 * Implementing UnitTestIncompleteListener it 'marks' incomplete test cases
42 * as INCOMPLETE when calling the Resultlistener.
43 * <pre>
44 *
45 * </pre>
46 *
47 * @author $Author: hostlows $ created by <a href="mailto:hostlows@users.sf.net">Robert Hostlowsky</a>
48 * @version $Revision: 63 $, $Date: 2005-08-21 23:35:00 +0200 (So, 21 Aug 2005) $
49 */
50 public abstract class TourTestRunner extends BaseTestRunner implements UnitTestIncompleteListener {
51
52 /** calls {@link #testFailed(int, junit.framework.Test, Throwable)} with state STATUS_INCOMPLETE.
53 * @param test the test case which failed with an 'incomplete' failure
54 * @param t any Throwable (seems to be an AssertionException)
55 */
56 public void addIncompleteTest(Test test, final Throwable t) {
57 testFailed(junitour.TourTestResult.STATUS_INCOMPLETE, test, t);
58 }
59 }