1   package junitour.subpackage;
2   
3   import junit.framework.*;
4   import junit.textui.ResultPrinter;
5   
6   import junitour.UnitTestIncompleteError;
7   import junitour.MyResultPrinter;
8   import junitour.TourTestResult;
9   
10  /**
11   * This is a set of TestCases which never fail
12   *
13   * created: by Hostlowsky, at 03.12.2003
14   * <pre>
15   *
16   * $Log$
17   * Revision 1.2  2004/12/05 04:37:10  hostlows
18   * unused import
19   *
20   * Revision 1.1  2003/12/04 23:45:16  hostlows
21   * new tests
22   *
23   *
24   * </pre>
25   * @author $Author: hostlows $, created by  <a href="mailto:hostlows@users.sf.net">Robert Hostlowsky</a>
26   * @version $Revision: 45 $, $Date: 2004-12-05 05:37:27 +0100 (So, 05 Dez 2004) $
27   */
28  public class IncompleteTest extends TestCase {
29  
30  	public IncompleteTest() {
31  	}
32  
33    public void testIncomplete() {
34      throw new UnitTestIncompleteError("This test is just incomplete!");
35    }
36  
37    public static void main(String[] args) {
38  		runTextUI();
39    //		new junit.swingui.TestRunner().run(ExampleTest.class);
40    //		new junitour.swingui.TestRunner().run(ExampleTest.class);
41  	}
42  
43  	private static void runTextUI() {
44  		ResultPrinter resPrinter = new MyResultPrinter(System.out);
45  		final junit.textui.TestRunner testRunner = new junit.textui.TestRunner(resPrinter) {
46  					protected TestResult createTestResult() {
47  						return new TourTestResult();
48  					}
49  				};
50  		testRunner.doRun(suite());
51  	}
52  
53  	/** creates the testsuite object for this class's test methods.
54     *
55     * @return testsuite for this class
56     */
57    public static TestSuite suite() {
58  		return new TestSuite(IncompleteTest.class);
59  	}
60  
61  }
62