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 import org.apache.commons.lang.builder.BuilderTestSuite; 24 import org.apache.commons.lang.enums.EnumTestSuite; 25 import org.apache.commons.lang.exception.ExceptionTestSuite; 26 import org.apache.commons.lang.math.MathTestSuite; 27 import org.apache.commons.lang.mutable.MutableTestSuite; 28 //import org.apache.commons.lang.text.TextTestSuite; 29 import org.apache.commons.lang.time.TimeTestSuite; 30 31 /** 32 * Test suite for [lang]. 33 * 34 * @author Stephen Colebourne 35 * @version $Id: AllLangTestSuite.java 161244 2005-04-14 06:16:36Z ggregory $ 36 */ 37 public class AllLangTestSuite extends TestCase { 38 39 /** 40 * Construct a new instance. 41 */ 42 public AllLangTestSuite(String name) { 43 super(name); 44 } 45 46 /** 47 * Command-line interface. 48 */ 49 public static void main(String[] args) { 50 TestRunner.run(suite()); 51 } 52 53 /** 54 * Get the suite of tests 55 */ 56 public static Test suite() { 57 TestSuite suite = new TestSuite(); 58 suite.setName("Commons-Lang (all) Tests"); 59 suite.addTest(LangTestSuite.suite()); 60 suite.addTest(BuilderTestSuite.suite()); 61 suite.addTest(EnumTestSuite.suite()); 62 suite.addTest(org.apache.commons.lang.enum.EnumTestSuite.suite()); 63 suite.addTest(ExceptionTestSuite.suite()); 64 suite.addTest(MathTestSuite.suite()); 65 suite.addTest(MutableTestSuite.suite()); 66 // suite.addTest(TextTestSuite.suite()); 67 suite.addTest(TimeTestSuite.suite()); 68 return suite; 69 } 70 } 71