KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > dbcp > TestAll


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

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 /**
25  * @author Rodney Waldhoff
26  * @version $Revision: 1.15 $ $Date: 2004/05/01 12:43:47 $
27  */

28 public class TestAll extends TestCase {
29     public TestAll(String JavaDoc 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 JavaDoc args[]) {
52         String JavaDoc[] testCaseName = { TestAll.class.getName() };
53         junit.textui.TestRunner.main(testCaseName);
54     }
55 }
56
Popular Tags