KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > logicalcobwebs > proxool > admin > jmx > AllTests


1 /*
2  * This software is released under a licence similar to the Apache Software Licence.
3  * See org.logicalcobwebs.proxool.package.html for details.
4  * The latest version is available at http://proxool.sourceforge.net
5  */

6 package org.logicalcobwebs.proxool.admin.jmx;
7
8 import junit.extensions.TestSetup;
9 import junit.framework.Test;
10 import junit.framework.TestSuite;
11 import org.logicalcobwebs.proxool.GlobalTest;
12
13 /**
14  * Run all tests in the jmx package.
15  *
16  * @version $Revision: 1.5 $, $Date: 2003/10/20 07:40:44 $
17  * @author Christian Nedregaard (christian_nedregaard@email.com)
18  * @author $Author: chr32 $ (current maintainer)
19  * @since Proxool 0.8
20  */

21 public class AllTests {
22
23     /**
24      * Create a composite test of all the tests in the jmx package.
25      * @return test suite
26      */

27     public static Test suite() {
28         TestSuite suite = new TestSuite();
29         suite.addTestSuite(ConnectionPoolMBeanTest.class);
30         suite.addTestSuite(MultipleAgentsConnectionPoolMBeanTest.class);
31
32         // create a wrapper for global initialization code.
33
TestSetup wrapper = new TestSetup(suite) {
34             public void setUp() throws Exception JavaDoc {
35                 GlobalTest.globalSetup();
36             }
37         };
38         return wrapper;
39     }
40
41 }
42
43 /*
44  Revision history:
45  $Log: AllTests.java,v $
46  Revision 1.5 2003/10/20 07:40:44 chr32
47  Improved tests.
48
49  Revision 1.4 2003/05/06 23:17:12 chr32
50  Moving JMX tests back in from sandbox.
51
52  Revision 1.1 2003/03/07 16:35:17 billhorsman
53  moved jmx stuff into sandbox until it is tested
54
55  Revision 1.2 2003/03/03 11:12:06 billhorsman
56  fixed licence
57
58  Revision 1.1 2003/02/26 19:03:43 chr32
59  Init rev.
60
61 */

62
Popular Tags