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