KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > lang > LangTestSuite


1 /*
2  * Copyright 2002-2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.commons.lang;
17
18 import junit.framework.Test;
19 import junit.framework.TestCase;
20 import junit.framework.TestSuite;
21 import junit.textui.TestRunner;
22
23 /**
24  * Test suite for the Lang package.
25  *
26  * @author Stephen Colebourne
27  * @author <a HREF="mailto:ridesmet@users.sourceforge.net">Ringo De Smet</a>
28  * @author Matthew Hawthorne
29  * @version $Id: LangTestSuite.java 161244 2005-04-14 06:16:36Z ggregory $
30  */

31 public class LangTestSuite extends TestCase {
32     
33     /**
34      * Construct a new instance.
35      */

36     public LangTestSuite(String JavaDoc name) {
37         super(name);
38     }
39
40     /**
41      * Command-line interface.
42      */

43     public static void main(String JavaDoc[] args) {
44         TestRunner.run(suite());
45     }
46
47     /**
48      * Get the suite of tests
49      */

50     public static Test suite() {
51         TestSuite suite = new TestSuite();
52         suite.setName("Commons-Lang Tests");
53         suite.addTest(ArrayUtilsTest.suite());
54         suite.addTest(ArrayUtilsAddTest.suite());
55         suite.addTest(BitFieldTest.suite());
56         suite.addTest(BooleanUtilsTest.suite());
57         suite.addTest(CharEncodingTest.suite());
58         suite.addTest(CharRangeTest.suite());
59         suite.addTest(CharSetTest.suite());
60         suite.addTest(CharSetUtilsTest.suite());
61         suite.addTest(CharUtilsTest.suite());
62         suite.addTest(ClassUtilsTest.suite());
63         suite.addTest(EntitiesTest.suite());
64         suite.addTest(IllegalClassExceptionTest.suite());
65         suite.addTest(IncompleteArgumentExceptionTest.suite());
66         suite.addTest(NotImplementedExceptionTest.suite());
67         suite.addTest(NullArgumentExceptionTest.suite());
68         suite.addTest(NumberRangeTest.suite());
69         suite.addTest(NumberUtilsTest.suite());
70         suite.addTest(ObjectUtilsTest.suite());
71         suite.addTest(RandomStringUtilsTest.suite());
72         suite.addTest(SerializationUtilsTest.suite());
73         suite.addTest(StringUtilsTest.suite());
74         suite.addTest(StringUtilsTrimEmptyTest.suite());
75         suite.addTest(StringUtilsSubstringTest.suite());
76         suite.addTest(StringUtilsEqualsIndexOfTest.suite());
77         suite.addTest(StringUtilsIsTest.suite());
78         suite.addTest(StringEscapeUtilsTest.suite());
79         suite.addTest(SystemUtilsTest.suite());
80         suite.addTest(UnhandledExceptionTest.suite());
81         suite.addTest(ValidateTest.suite());
82         suite.addTest(WordUtilsTest.suite());
83         return suite;
84     }
85 }
86
Popular Tags