1 16 17 package org.apache.commons.dbcp; 18 19 import junit.framework.*; 20 import org.apache.commons.dbcp.datasources.TestSharedPoolDataSource; 21 import org.apache.commons.dbcp.datasources.TestPerUserPoolDataSource; 22 import org.apache.commons.dbcp.datasources.TestFactory; 23 24 28 public class TestAll extends TestCase { 29 public TestAll(String testName) { 30 super(testName); 31 } 32 33 public static Test suite() { 34 TestSuite suite = new TestSuite(); 35 suite.addTest(TestAbandonedObjectPool.suite()); 36 suite.addTest(TestManual.suite()); 37 suite.addTest(TestJOCLed.suite()); 38 suite.addTest(TestBasicDataSourceFactory.suite()); 39 suite.addTest(TestBasicDataSource.suite()); 40 suite.addTest(TestAbandonedBasicDataSource.suite()); 41 suite.addTest(TestPStmtPoolingBasicDataSource.suite()); 42 suite.addTest(TestDelegatingConnection.suite()); 43 suite.addTest(TestDelegatingStatement.suite()); 44 suite.addTest(TestDelegatingPreparedStatement.suite()); 45 suite.addTest(TestSharedPoolDataSource.suite()); 46 suite.addTest(TestPerUserPoolDataSource.suite()); 47 suite.addTest(TestFactory.suite()); 48 return suite; 49 } 50 51 public static void main(String args[]) { 52 String [] testCaseName = { TestAll.class.getName() }; 53 junit.textui.TestRunner.main(testCaseName); 54 } 55 } 56 | Popular Tags |