1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 }