KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > susebox > java > util > UtilTestSuite


1 /*
2  * UtilTestSuite.java: JUnit test for the util package
3  *
4  * Copyright (C) 2001 Heiko Blau
5  *
6  * This file belongs to the Susebox Java core test suite.
7  * The Susebox Java core test suite is free software; you can redistribute it
8  * and/or modify it under the terms of the GNU Lesser General Public License as
9  * published by the Free Software Foundation; either version 2.1 of the License,
10  * or (at your option) 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 Java core 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 Java core test suite uses the test framework JUnit by Kent Beck
28  * and Erich Gamma. You should have received a copy of their JUnit licence
29  * agreement along with the Susebox Java 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.java.util;
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.TestUtilities;
54
55
56 //-----------------------------------------------------------------------------
57
// Class UtilTestSuite
58
//
59

60 /**<p>
61  * This is the test suite for the util package. It composes all test classes
62  * in the util package to a singel test suite.
63  *</p>
64  *
65  * @author Heiko Blau
66  */

67 public class UtilTestSuite extends TestCase {
68   
69   //---------------------------------------------------------------------------
70
// main method
71
//
72

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

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

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

93   public static Test suite() {
94     TestSuite suite = new TestSuite(UtilTestSuite.class.getName());
95     
96     return suite;
97   }
98
99   //---------------------------------------------------------------------------
100
// constructor
101
//
102

103   /**
104    * Constructor
105    */

106   public UtilTestSuite(String JavaDoc name) {
107     super(name);
108   }
109 }
110
Popular Tags