1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    * 
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   * 
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  package org.apache.commons.lang;
18  
19  import junit.framework.Test;
20  import junit.framework.TestCase;
21  import junit.framework.TestSuite;
22  import junit.textui.TestRunner;
23  
24  import org.apache.commons.lang.builder.BuilderTestSuite;
25  import org.apache.commons.lang.enums.EnumTestSuite;
26  import org.apache.commons.lang.exception.ExceptionTestSuite;
27  import org.apache.commons.lang.math.MathTestSuite;
28  import org.apache.commons.lang.mutable.MutableTestSuite;
29  import org.apache.commons.lang.text.TextTestSuite;
30  import org.apache.commons.lang.time.TimeTestSuite;
31  
32  /**
33   * Test suite for [lang].
34   *
35   * @author Stephen Colebourne
36   * @version $Id: AllLangTestSuite.java 437554 2006-08-28 06:21:41Z bayard $
37   */
38  public class AllLangTestSuite extends TestCase {
39      
40      /**
41       * Construct a new instance.
42       */
43      public AllLangTestSuite(String name) {
44          super(name);
45      }
46  
47      /**
48       * Command-line interface.
49       */
50      public static void main(String[] args) {
51          TestRunner.run(suite());
52      }
53  
54      /**
55       * Get the suite of tests
56       */
57      public static Test suite() {
58          TestSuite suite = new TestSuite();
59          suite.setName("Commons-Lang (all) Tests");
60          suite.addTest(LangTestSuite.suite());
61          suite.addTest(BuilderTestSuite.suite());
62          suite.addTest(EnumTestSuite.suite());
63          suite.addTest(org.apache.commons.lang.enum.EnumTestSuite.suite());
64          suite.addTest(ExceptionTestSuite.suite());
65          suite.addTest(MathTestSuite.suite());
66          suite.addTest(MutableTestSuite.suite());
67          suite.addTest(TextTestSuite.suite());
68          suite.addTest(TimeTestSuite.suite());
69          return suite;
70      }
71  }