KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > susebox > SuseboxTestSuite


1 /*
2  * SuseboxTestSuite.java: JUnit root test for all de.susebox subpackages
3  *
4  * Copyright (C) 2001 Heiko Blau
5  *
6  * This file belongs to the Susebox test suite.
7  * The Susebox test suite is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as published by the
9  * Free Software Foundation; either version 2.1 of the License, or (at your option)
10  * any later version.
11  *
12  * This software is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE.
15  * See the GNU Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License along
18  * with the Susebox test suite. If not, write to the
19  *
20  * Free Software Foundation, Inc.
21  * 59 Temple Place, Suite 330,
22  * Boston, MA 02111-1307
23  * USA
24  *
25  * or check the Internet: http://www.fsf.org
26  *
27  * The Susebox test suite uses the test framework JUnit by Kent Beck and Erich Gamma.
28  * You should have received a copy of their JUnit licence agreement along with
29  * the Susebox test suite.
30  *
31  * We do NOT provide the JUnit archive junit.jar nessecary to compile and run
32  * our tests, since we assume, that You either have it already or would like
33  * to get the current release Yourself.
34  * Please visit either:
35  * http://sourceforge.net/projects/junit
36  * or
37  * http://junit.org
38  * to obtain JUnit.
39  *
40  * Contact:
41  * email: heiko@susebox.de
42  */

43
44 package de.susebox;
45
46 //-----------------------------------------------------------------------------
47
// Imports
48
//
49
import junit.framework.Test;
50 import junit.framework.TestCase;
51 import junit.framework.TestSuite;
52
53 import de.susebox.java.JavaTestSuite;
54 import de.susebox.jtopas.JTopasTestSuite;
55
56
57 //-----------------------------------------------------------------------------
58
// Class JTopasTestSuite
59
//
60

61 /**<p>
62  * This is the test suite for the java package tree. It composes all test classes
63  * in the java subpackages to a single test suite.
64  *</p>
65  *
66  * @author Heiko Blau
67  */

68 public class SuseboxTestSuite extends TestCase {
69   
70   //---------------------------------------------------------------------------
71
// main method
72
//
73

74   /**
75    * call this method to invoke the tests
76    */

77   public static void main(String JavaDoc[] args) {
78     String JavaDoc[] tests = { SuseboxTestSuite.class.getName() };
79
80     TestUtilities.run(tests, args);
81   }
82   
83
84   //---------------------------------------------------------------------------
85
// suite method
86
//
87

88   /**
89    * Implementation of the JUnit method <code>suite</code>. For each set of test
90    * properties one or more tests are instantiated.
91    *
92    * @return a test suite
93    */

94   public static Test suite() {
95     TestSuite suite = new TestSuite(SuseboxTestSuite.class.getName());
96     
97     suite.addTest(TestExceptions.suite());
98     suite.addTest(JTopasTestSuite.suite());
99     suite.addTest(JavaTestSuite.suite());
100     return suite;
101   }
102
103   //---------------------------------------------------------------------------
104
// constructor
105
//
106

107   /**
108    * Constructor
109    */

110   public SuseboxTestSuite(String JavaDoc name) {
111     super(name);
112   }
113 }
114
Popular Tags