1 21 22 package org.opensubsystems.core.persist.db.connectionpool; 23 24 import junit.extensions.TestSetup; 25 import junit.framework.Test; 26 import junit.framework.TestSuite; 27 28 import org.opensubsystems.core.persist.db.DatabaseTestSetup; 29 import org.opensubsystems.core.persist.db.DatabaseTestSuite; 30 import org.opensubsystems.core.persist.db.connectionpool 31 .C3P0DatabaseConnectionFactoryTest.C3P0DatabaseConnectionFactoryTestInternal; 32 import org.opensubsystems.core.persist.db.connectionpool 33 .DBCPDatabaseConnectionFactoryTest.DBCPDatabaseConnectionFactoryTestInternal; 34 import org.opensubsystems.core.persist.db.connectionpool 35 .ProxoolDatabaseConnectionFactoryTest.ProxoolDatabaseConnectionFactoryTestInternal; 36 import org.opensubsystems.core.persist.db.connectionpool 37 .XAPoolDatabaseConnectionFactoryTest.XAPoolDatabaseConnectionFactoryTestInternal; 38 39 48 public final class ConnectionPoolTests 49 { 50 52 55 private ConnectionPoolTests( 56 ) 57 { 58 } 60 61 63 68 public static Test suite( 69 ) 70 { 71 TestSuite suite = new DatabaseTestSuite("Test for connection pools"); 72 addGenericTests(suite); 73 TestSetup wrapper = new DatabaseTestSetup(suite); 74 75 return wrapper; 76 } 77 78 83 public static void addGenericTests( 84 TestSuite suite 85 ) 86 { 87 suite.addTestSuite(C3P0DatabaseConnectionFactoryTestInternal.class); 88 suite.addTestSuite(DBCPDatabaseConnectionFactoryTestInternal.class); 89 suite.addTestSuite(ProxoolDatabaseConnectionFactoryTestInternal.class); 90 suite.addTestSuite(XAPoolDatabaseConnectionFactoryTestInternal.class); 91 } 92 } 93 | Popular Tags |