1   /*
2    * $Id: ValidatorTestSuite.java 384724 2006-03-10 07:55:23Z niallp $
3    * $Rev: 384724 $
4    * $Date: 2006-03-10 07:55:23 +0000 (Fri, 10 Mar 2006) $
5    *
6    * ====================================================================
7    * Copyright 2000-2006 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.addTestSuite(ExceptionTest.class);
44  
45         suite.addTest(ByteTest.suite());
46         suite.addTestSuite(CreditCardValidatorTest.class);
47         suite.addTest(DateTest.suite());
48         suite.addTest(DoubleTest.suite());
49         suite.addTest(EmailTest.suite());
50         suite.addTest(EntityImportTest.suite());
51         suite.addTest(ExtensionTest.suite());        
52         suite.addTestSuite(FlagsTest.class);
53         suite.addTestSuite(FieldTest.class);
54         suite.addTest(FloatTest.suite());
55         suite.addTest(IntegerTest.suite());
56         suite.addTestSuite(ISBNValidatorTest.class);
57         suite.addTest(LocaleTest.suite());
58         suite.addTest(LongTest.suite());
59         suite.addTestSuite(MultipleConfigFilesTest.class);
60         suite.addTest(MultipleTests.suite());
61         suite.addTest(RequiredIfTest.suite());
62         suite.addTest(RequiredNameTest.suite());
63         suite.addTest(RetrieveFormTest.suite());
64         suite.addTest(ShortTest.suite());
65         suite.addTest(TypeTest.suite());
66         suite.addTest(UrlTest.suite());
67         suite.addTest(ValidatorTest.suite());
68         suite.addTest(VarTest.suite());
69         suite.addTestSuite(GenericValidatorTest.class);
70         suite.addTest(ValidatorResultsTest.suite());
71  
72         return suite;
73      }
74  
75      public static void main(String args[]) {
76          junit.textui.TestRunner.run(suite());
77      }
78  
79  }