1 /* 2 * $Header: /home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/ValidatorTestSuite.java,v 1.15 2004/02/21 17:10:30 rleland Exp $ 3 * $Revision: 1.15 $ 4 * $Date: 2004/02/21 17:10:30 $ 5 * 6 * ==================================================================== 7 * Copyright 2000-2004 The Apache Software Foundation 8 * 9 * Licensed under the Apache License, Version 2.0 (the "License"); 10 * you may not use this file except in compliance with the License. 11 * You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, software 16 * distributed under the License is distributed on an "AS IS" BASIS, 17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 * See the License for the specific language governing permissions and 19 * limitations under the License. 20 */ 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 /*** 31 * Test suite for <code>org.apache.commons.validator</code> 32 * package. 33 */ 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(EmailTest.suite()); 55 suite.addTestSuite(CreditCardValidatorTest.class); 56 suite.addTest(ValidatorTest.suite()); 57 suite.addTest(LocaleTest.suite()); 58 suite.addTestSuite(FieldTest.class); 59 suite.addTestSuite(FlagsTest.class); 60 suite.addTestSuite(ExceptionTest.class); 61 suite.addTest(UrlTest.suite()); 62 63 return suite; 64 } 65 66 public static void main(String args[]) { 67 junit.textui.TestRunner.run(suite()); 68 } 69 70 }

This page was automatically generated by Maven