KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > validator > ValidatorTestSuite


1 /*
2  * $Id: ValidatorTestSuite.java 155434 2005-02-26 13:16:41Z dirkv $
3  * $Rev$
4  * $Date: 2005-02-26 05:16:41 -0800 (Sat, 26 Feb 2005) $
5  *
6  * ====================================================================
7  * Copyright 2000-2005 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 JavaDoc 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 JavaDoc args[]) {
69         junit.textui.TestRunner.run(suite());
70     }
71
72 }
73
Popular Tags