KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > logicalcobwebs > proxool > 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;
7
8 import junit.extensions.TestSetup;
9 import junit.framework.Test;
10 import junit.framework.TestSuite;
11
12 /**
13  * Run all tests
14  *
15  * @version $Revision: 1.27 $, $Date: 2004/03/23 21:14:24 $
16  * @author Bill Horsman (bill@logicalcobwebs.co.uk)
17  * @author $Author: billhorsman $ (current maintainer)
18  * @since Proxool 0.5
19  */

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

27     public static Test suite() {
28         TestSuite suite = new TestSuite();
29         suite.addTestSuite(ConfigurationListenerTest.class);
30         suite.addTestSuite(ConnectionInfoTest.class);
31         suite.addTestSuite(ConnectionListenerTest.class);
32         suite.addTestSuite(ConnectionResetterTest.class);
33         suite.addTestSuite(ProxoolDataSourceTest.class);
34         suite.addTestSuite(DriverTest.class);
35         suite.addTestSuite(ConnectionPoolTest.class);
36         suite.addTestSuite(FatalSqlExceptionTest.class);
37         suite.addTestSuite(HibernateTest.class);
38         suite.addTestSuite(HouseKeeperTest.class);
39         suite.addTestSuite(HypersonicTest.class);
40         suite.addTestSuite(KillTest.class);
41         suite.addTestSuite(ManyPoolsTest.class);
42         suite.addTestSuite(PropertyTest.class);
43         suite.addTestSuite(PrototyperTest.class);
44         suite.addTestSuite(ProxyConnectionTest.class);
45         suite.addTestSuite(ProxyDatabaseMetaDataTest.class);
46         suite.addTestSuite(ProxyStatementTest.class);
47         suite.addTestSuite(RegistrationTest.class);
48         suite.addTestSuite(StateListenerTest.class);
49         suite.addTestSuite(UpdateDefinitionTest.class);
50         suite.addTestSuite(WrapperTest.class);
51         // TODO Need more investigation into why this fails sometimes.
52
// suite.addTestSuite(PerformanceTest.class);
53

54         // create a wrapper for global initialization code.
55
TestSetup wrapper = new TestSetup(suite) {
56             public void setUp() throws Exception JavaDoc {
57                 GlobalTest.globalSetup();
58             }
59         };
60
61         return wrapper;
62     }
63
64 }
65
66 /*
67  Revision history:
68  $Log: AllTests.java,v $
69  Revision 1.27 2004/03/23 21:14:24 billhorsman
70  new tests
71
72  Revision 1.26 2004/03/18 17:10:01 chr32
73  Renamed DataSourceTest -> ProxoolDataSourceTest. Added test for factory-configured mode.
74
75  Revision 1.25 2004/03/15 02:46:09 chr32
76  Added initial ProxoolDataSourceTest.
77
78  Revision 1.24 2003/11/04 13:23:18 billhorsman
79  Added PropetyTest
80
81  Revision 1.23 2003/10/26 16:23:20 billhorsman
82  Fixed up test suites
83
84  Revision 1.22 2003/09/28 09:38:39 billhorsman
85  New unit test for Hibernate.
86
87  Revision 1.21 2003/04/27 22:11:34 billhorsman
88  temporary removal of PerformanceTest
89
90  Revision 1.20 2003/04/27 15:46:11 billhorsman
91  moved ProxoolDataSourceTest to sandbox
92
93  Revision 1.19 2003/04/19 13:01:01 billhorsman
94  improve tests
95
96  Revision 1.18 2003/03/11 14:58:30 billhorsman
97  put PerformanceTest back in the global test
98
99  Revision 1.17 2003/03/03 11:12:03 billhorsman
100  fixed licence
101
102  Revision 1.16 2003/02/27 18:01:46 billhorsman
103  completely rethought the test structure. it's now
104  more obvious. no new tests yet though.
105
106  Revision 1.15 2003/02/19 23:25:28 billhorsman
107  new StateListenerTest
108
109  Revision 1.14 2003/02/19 15:14:22 billhorsman
110  fixed copyright (copy and paste error,
111  not copyright change)
112
113  Revision 1.13 2003/02/19 13:47:32 chr32
114  Added configuration listener test.
115
116  Revision 1.12 2003/02/18 16:51:19 chr32
117  Added tests for ConnectionListeners.
118
119  Revision 1.11 2003/02/06 17:41:02 billhorsman
120  now uses imported logging
121
122  Revision 1.10 2003/01/23 11:13:57 billhorsman
123  remove PerformanceTest from suite
124
125  Revision 1.9 2002/12/16 17:35:42 chr32
126  Removed redundant imports.
127
128  Revision 1.8 2002/12/16 17:06:10 billhorsman
129  new test structure
130
131  Revision 1.7 2002/12/15 19:16:58 chr32
132  Added JAXPConfigurator test.
133
134  Revision 1.6 2002/11/07 18:53:41 billhorsman
135  slight improvement to setup
136
137  Revision 1.5 2002/11/02 11:37:48 billhorsman
138  New tests
139
140  Revision 1.4 2002/10/28 21:37:54 billhorsman
141  now allows for non-existent log4jPath
142
143  Revision 1.3 2002/10/27 13:05:02 billhorsman
144  checkstyle
145
146  Revision 1.2 2002/10/27 12:03:33 billhorsman
147  clear up of tests
148
149  Revision 1.1 2002/10/25 10:41:07 billhorsman
150  draft changes to test globalSetup
151
152 */

153
Popular Tags