001    /*
002     * Licensed to the Apache Software Foundation (ASF) under one or more
003     * contributor license agreements.  See the NOTICE file distributed with
004     * this work for additional information regarding copyright ownership.
005     * The ASF licenses this file to You under the Apache License, Version 2.0
006     * (the "License"); you may not use this file except in compliance with
007     * the License.  You may obtain a copy of the License at
008     * 
009     *      http://www.apache.org/licenses/LICENSE-2.0
010     * 
011     * Unless required by applicable law or agreed to in writing, software
012     * distributed under the License is distributed on an "AS IS" BASIS,
013     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014     * See the License for the specific language governing permissions and
015     * limitations under the License.
016     */
017    
018    package org.apache.commons.pool;
019    
020    import junit.framework.Test;
021    import junit.framework.TestCase;
022    import junit.framework.TestSuite;
023    
024    /**
025     * @author Rodney Waldhoff
026     * @version $Revision: 603123 $ $Date: 2007-12-10 21:27:15 -0500 (Mon, 10 Dec 2007) $
027     */
028    public class TestAll extends TestCase {
029        public TestAll(String testName) {
030            super(testName);
031        }
032    
033        public static Test suite() {
034            TestSuite suite = new TestSuite();
035            suite.addTest(org.apache.commons.pool.TestBaseObjectPool.suite());
036            suite.addTest(org.apache.commons.pool.TestBaseKeyedObjectPool.suite());
037            suite.addTest(org.apache.commons.pool.TestBasePoolableObjectFactory.suite());
038            suite.addTest(org.apache.commons.pool.TestBaseKeyedPoolableObjectFactory.suite());
039            suite.addTest(org.apache.commons.pool.TestPoolUtils.suite());
040            suite.addTest(org.apache.commons.pool.impl.TestAll.suite());
041            return suite;
042        }
043    
044        public static void main(String args[]) {
045            String[] testCaseName = { TestAll.class.getName() };
046            junit.textui.TestRunner.main(testCaseName);
047        }
048    }