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
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
40
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
54
55
56
57 public static TestSuite suite() {
58 return new TestSuite(IncompleteTest.class);
59 }
60
61 }
62