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.net5 */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 tests14 *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.519 */20 public class AllTests {21 22 /**23 * Run all tests24 *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 {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 billhorsman70 new tests71 72 Revision 1.26 2004/03/18 17:10:01 chr3273 Renamed DataSourceTest -> ProxoolDataSourceTest. Added test for factory-configured mode.74 75 Revision 1.25 2004/03/15 02:46:09 chr3276 Added initial ProxoolDataSourceTest.77 78 Revision 1.24 2003/11/04 13:23:18 billhorsman79 Added PropetyTest80 81 Revision 1.23 2003/10/26 16:23:20 billhorsman82 Fixed up test suites83 84 Revision 1.22 2003/09/28 09:38:39 billhorsman85 New unit test for Hibernate.86 87 Revision 1.21 2003/04/27 22:11:34 billhorsman88 temporary removal of PerformanceTest89 90 Revision 1.20 2003/04/27 15:46:11 billhorsman91 moved ProxoolDataSourceTest to sandbox92 93 Revision 1.19 2003/04/19 13:01:01 billhorsman94 improve tests95 96 Revision 1.18 2003/03/11 14:58:30 billhorsman97 put PerformanceTest back in the global test98 99 Revision 1.17 2003/03/03 11:12:03 billhorsman100 fixed licence101 102 Revision 1.16 2003/02/27 18:01:46 billhorsman103 completely rethought the test structure. it's now104 more obvious. no new tests yet though.105 106 Revision 1.15 2003/02/19 23:25:28 billhorsman107 new StateListenerTest108 109 Revision 1.14 2003/02/19 15:14:22 billhorsman110 fixed copyright (copy and paste error,111 not copyright change)112 113 Revision 1.13 2003/02/19 13:47:32 chr32114 Added configuration listener test.115 116 Revision 1.12 2003/02/18 16:51:19 chr32117 Added tests for ConnectionListeners.118 119 Revision 1.11 2003/02/06 17:41:02 billhorsman120 now uses imported logging121 122 Revision 1.10 2003/01/23 11:13:57 billhorsman123 remove PerformanceTest from suite124 125 Revision 1.9 2002/12/16 17:35:42 chr32126 Removed redundant imports.127 128 Revision 1.8 2002/12/16 17:06:10 billhorsman129 new test structure130 131 Revision 1.7 2002/12/15 19:16:58 chr32132 Added JAXPConfigurator test.133 134 Revision 1.6 2002/11/07 18:53:41 billhorsman135 slight improvement to setup136 137 Revision 1.5 2002/11/02 11:37:48 billhorsman138 New tests139 140 Revision 1.4 2002/10/28 21:37:54 billhorsman141 now allows for non-existent log4jPath142 143 Revision 1.3 2002/10/27 13:05:02 billhorsman144 checkstyle145 146 Revision 1.2 2002/10/27 12:03:33 billhorsman147 clear up of tests148 149 Revision 1.1 2002/10/25 10:41:07 billhorsman150 draft changes to test globalSetup151 152 */153