KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > logicalcobwebs > proxool > admin > 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;
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 in admin package tests
15  *
16  * @version $Revision: 1.5 $, $Date: 2003/03/07 16:35:09 $
17  * @author Bill Horsman (bill@logicalcobwebs.co.uk)
18  * @author $Author: billhorsman $ (current maintainer)
19  * @since Proxool 0.7
20  */

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

27     public static Test suite() {
28         TestSuite suite = new TestSuite();
29         suite.addTestSuite(StatisticsListenerTest.class);
30         suite.addTestSuite(StatisticsTest.class);
31         suite.addTestSuite(SnapshotTest.class);
32
33         // create a wrapper for global initialization code.
34
TestSetup wrapper = new TestSetup(suite) {
35             public void setUp() throws Exception JavaDoc {
36                 GlobalTest.globalSetup();
37             }
38         };
39         return wrapper;
40     }
41
42 }
43
44 /*
45  Revision history:
46  $Log: AllTests.java,v $
47  Revision 1.5 2003/03/07 16:35:09 billhorsman
48  moved jmx stuff into sandbox until it is tested
49
50  Revision 1.4 2003/03/03 11:12:05 billhorsman
51  fixed licence
52
53  Revision 1.3 2003/02/26 19:03:08 chr32
54  Added suite for JMX tests.
55
56  Revision 1.2 2003/02/26 11:53:17 billhorsman
57  added StatisticsTest and SnapshotTest
58
59  Revision 1.1 2003/02/20 00:33:15 billhorsman
60  renamed monitor package -> admin
61
62  Revision 1.3 2003/02/19 23:36:50 billhorsman
63  renamed monitor package to admin
64
65  Revision 1.2 2003/02/19 15:14:28 billhorsman
66  fixed copyright (copy and paste error,
67  not copyright change)
68
69  Revision 1.1 2003/02/07 15:10:36 billhorsman
70  new admin tests
71
72
73 */

74
Popular Tags