KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > logicalcobwebs > proxool > configuration > 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.configuration;
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
15  *
16  * @version $Revision: 1.7 $, $Date: 2003/03/03 11:12:06 $
17  * @author Bill Horsman (bill@logicalcobwebs.co.uk)
18  * @author $Author: billhorsman $ (current maintainer)
19  * @since Proxool 0.5
20  */

21 public class AllTests {
22
23     /**
24      * Create a composite test of all Proxool configuration tests.
25      *
26      * @return a composite test of all Proxool configuration tests.
27      */

28     public static Test suite() {
29         TestSuite suite = new TestSuite();
30         suite.addTestSuite(ConfiguratorTest.class);
31         suite.addTestSuite(PropertyConfiguratorTest.class);
32         suite.addTestSuite(JAXPConfiguratorTest.class);
33         suite.addTestSuite(AvalonConfiguratorTest.class);
34
35         // create a wrapper for global initialization code.
36
TestSetup wrapper = new TestSetup(suite) {
37             public void setUp() throws Exception JavaDoc {
38                 GlobalTest.globalSetup();
39             }
40         };
41         return wrapper;
42     }
43
44 }
45
46 /*
47  Revision history:
48  $Log: AllTests.java,v $
49  Revision 1.7 2003/03/03 11:12:06 billhorsman
50  fixed licence
51
52  Revision 1.6 2003/02/19 15:14:26 billhorsman
53  fixed copyright (copy and paste error,
54  not copyright change)
55
56  Revision 1.5 2002/12/26 11:35:32 billhorsman
57  Added PropertyConfiguratorTest to test suite.
58
59  Revision 1.4 2002/12/23 02:40:21 chr32
60  Doc.
61
62  Revision 1.3 2002/12/18 03:13:51 chr32
63  Doc.
64
65  Revision 1.2 2002/12/16 17:35:43 chr32
66  Removed redundant imports.
67
68  Revision 1.1 2002/12/16 17:06:26 billhorsman
69  new test structure
70
71  Revision 1.7 2002/12/15 19:16:58 chr32
72  Added JAXPConfigurator test.
73
74  Revision 1.6 2002/11/07 18:53:41 billhorsman
75  slight improvement to setup
76
77  Revision 1.5 2002/11/02 11:37:48 billhorsman
78  New tests
79
80  Revision 1.4 2002/10/28 21:37:54 billhorsman
81  now allows for non-existent log4jPath
82
83  Revision 1.3 2002/10/27 13:05:02 billhorsman
84  checkstyle
85
86  Revision 1.2 2002/10/27 12:03:33 billhorsman
87  clear up of tests
88
89  Revision 1.1 2002/10/25 10:41:07 billhorsman
90  draft changes to test globalSetup
91
92 */

93
Popular Tags