1 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 31 public class LangTestSuite extends TestCase { 32 33 36 public LangTestSuite(String name) { 37 super(name); 38 } 39 40 43 public static void main(String [] args) { 44 TestRunner.run(suite()); 45 } 46 47 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 |