1 21 22 package org.apache.commons.validator; 23 24 import junit.framework.Test; 25 import junit.framework.TestCase; 26 import junit.framework.TestSuite; 27 28 import org.apache.commons.validator.util.FlagsTest; 29 30 34 public class ValidatorTestSuite extends TestCase { 35 36 public ValidatorTestSuite(String name) { 37 super(name); 38 } 39 40 public static Test suite() { 41 TestSuite suite = new TestSuite(); 42 43 suite.addTest(RequiredNameTest.suite()); 44 suite.addTest(RequiredIfTest.suite()); 45 suite.addTest(MultipleTests.suite()); 46 suite.addTestSuite(MultipleConfigFilesTest.class); 47 suite.addTest(ByteTest.suite()); 48 suite.addTest(ShortTest.suite()); 49 suite.addTest(IntegerTest.suite()); 50 suite.addTest(LongTest.suite()); 51 suite.addTest(FloatTest.suite()); 52 suite.addTest(DoubleTest.suite()); 53 suite.addTest(TypeTest.suite()); 54 suite.addTest(ExtensionTest.suite()); 55 suite.addTest(EmailTest.suite()); 56 suite.addTestSuite(CreditCardValidatorTest.class); 57 suite.addTestSuite(ISBNValidatorTest.class); 58 suite.addTest(ValidatorTest.suite()); 59 suite.addTest(LocaleTest.suite()); 60 suite.addTestSuite(FieldTest.class); 61 suite.addTestSuite(FlagsTest.class); 62 suite.addTestSuite(ExceptionTest.class); 63 suite.addTest(UrlTest.suite()); 64 65 return suite; 66 } 67 68 public static void main(String args[]) { 69 junit.textui.TestRunner.run(suite()); 70 } 71 72 } 73 | Popular Tags |