KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ca > commons > jndi > JndiTestSuite


1 /**
2  * Created by IntelliJ IDEA.
3  * User: betch01
4  * Date: Dec 3, 2002
5  * Time: 12:03:50 PM
6  * To change this template use Options | File Templates.
7  */

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

28
29     public static Test suite()
30     {
31         TestSuite suite = new TestSuite();
32
33         // The tests...
34
suite.addTest(BasicOpsTest.suite());
35         suite.addTest(SchemaOpsTest.suite());
36         suite.addTest(ConnectionDataTest.suite());
37         suite.addTest(JNDIOpsTest.suite());
38         return suite;
39     }
40
41     /**
42      * Runs the test suite.
43      */

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