    1   /*
    2    * $Id: RoutinesTestSuite.java 371174 2006-01-22 03:24:40Z niallp $
    3    * $Revision: 371174 $
    4    * $Date: 2006-01-22 03:24:40 +0000 (Sun, 22 Jan 2006) $
    5    *
    6    * ====================================================================
    7    * Copyright 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.routines;
    23
    24  import junit.framework.Test;
    25  import junit.framework.TestCase;
    26  import junit.framework.TestSuite;
    27
    28  /***
    29   * Test suite for <code>org.apache.commons.validator.routines</code>
    30   * package.
    31   */
    32  public class RoutinesTestSuite extends TestCase {
    33
    34      /***
    35       * Construct an instance with the specified name
    36       * @param name name of the test
    37       */
    38      public RoutinesTestSuite(String name) {
    39          super(name);
    40      }
    41
    42      /***
    43       * Create a Test Suite
    44       * @return the test suite.
    45       */
    46      public static Test suite() {
    47         TestSuite suite = new TestSuite();
    48
    49         suite.addTestSuite(BigDecimalValidatorTest.class);
    50         suite.addTestSuite(BigIntegerValidatorTest.class);
    51         suite.addTestSuite(ByteValidatorTest.class);
    52         suite.addTestSuite(CalendarValidatorTest.class);
    53         suite.addTestSuite(CurrencyValidatorTest.class);
    54         suite.addTestSuite(DateValidatorTest.class);
    55         suite.addTestSuite(DoubleValidatorTest.class);
    56         suite.addTestSuite(FloatValidatorTest.class);
    57         suite.addTestSuite(IntegerValidatorTest.class);
    58         suite.addTestSuite(LongValidatorTest.class);
    59         suite.addTestSuite(PercentValidatorTest.class);
    60         suite.addTestSuite(ShortValidatorTest.class);
    61         suite.addTestSuite(TimeValidatorTest.class);
    62
    63         return suite;
    64      }
    65
    66      /***
    67       * Static main.
    68       * @param args arguments
    69       */
    70      public static void main(String args[]) {
    71          junit.textui.TestRunner.run(suite());
    72      }
    73
    74  }