    1   /*
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  You may obtain a copy of the License at
    8    *
    9    *      http://www.apache.org/licenses/LICENSE-2.0
    10   *
    11   * Unless required by applicable law or agreed to in writing, software
    12   * distributed under the License is distributed on an "AS IS" BASIS,
    13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14   * See the License for the specific language governing permissions and
    15   * limitations under the License.
    16   */
    17  package org.apache.commons.validator;
    18
    19  import junit.framework.Test;
    20  import junit.framework.TestCase;
    21  import junit.framework.TestSuite;
    22
    23  import org.apache.commons.validator.util.FlagsTest;
    24
    25  /***
    26   * Test suite for <code>org.apache.commons.validator</code>
    27   * package.
    28   *
    29   * @version $Revision: 478677 $ $Date: 2006-11-23 21:36:23 +0000 (Thu, 23 Nov 2006) $
    30   */
    31  public class ValidatorTestSuite extends TestCase {
    32
    33      public ValidatorTestSuite(String name) {
    34          super(name);
    35      }
    36
    37      public static Test suite() {
    38         TestSuite suite = new TestSuite();
    39
    40         suite.addTestSuite(ExceptionTest.class);
    41
    42         suite.addTest(ByteTest.suite());
    43         suite.addTestSuite(CreditCardValidatorTest.class);
    44         suite.addTest(CustomValidatorResourcesTest.suite());
    45         suite.addTest(DateTest.suite());
    46         suite.addTest(DoubleTest.suite());
    47         suite.addTest(EmailTest.suite());
    48         suite.addTest(EntityImportTest.suite());
    49         suite.addTest(ExtensionTest.suite());
    50         suite.addTestSuite(FlagsTest.class);
    51         suite.addTestSuite(FieldTest.class);
    52         suite.addTest(FloatTest.suite());
    53         suite.addTestSuite(GenericValidatorTest.class);
    54         suite.addTest(IntegerTest.suite());
    55         suite.addTestSuite(ISBNValidatorTest.class);
    56         suite.addTest(LocaleTest.suite());
    57         suite.addTest(LongTest.suite());
    58         suite.addTestSuite(MultipleConfigFilesTest.class);
    59         suite.addTest(MultipleTests.suite());
    60         suite.addTest(ParameterTest.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(ValidatorResultsTest.suite());
    68         suite.addTest(ValidatorTest.suite());
    69         suite.addTest(VarTest.suite());
    70
    71         return suite;
    72      }
    73
    74      public static void main(String args[]) {
    75          junit.textui.TestRunner.run(suite());
    76      }
    77
    78  }