KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ca > commons > naming > NamingTestSuite


1 /**
2  * This suite runs all the tests for
3  * the different Naming classes.
4  * Author: Chris Betts
5  * Date: 15/05/2002 / 16:35:24
6  */

7
8 package com.ca.commons.naming;
9 import junit.framework.*;
10
11 public class NamingTestSuite extends TestCase {
12
13     public NamingTestSuite(String JavaDoc name)
14     {
15         super(name);
16     }
17
18
19     /**
20      * Assembles and returns a test suite
21      * containing all known tests.
22      *
23      * New tests should be added here!
24      *
25      * @return A non-null test suite.
26      */

27
28     public static Test suite()
29     {
30         TestSuite suite = new TestSuite();
31
32         // The tests...
33
suite.addTest(DNTest.suite());
34         suite.addTest(RDNTest.suite()); // why not just 'suite.addTest(RDNTest.class);' ??
35
suite.addTest(DXAttributesTest.suite());
36         suite.addTest(DXAttributeTest.suite());
37         suite.addTest(NameUtilityTest.suite());
38
39         return suite;
40     }
41
42     /**
43      * Runs the test suite.
44      */

45
46     public static void main(String JavaDoc args[])
47     {
48         junit.textui.TestRunner.run(suite());
49     }
50 }
51
52
53
54
55
Popular Tags