1   /*
2    * Copyright 2001-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   
18  package org.apache.commons.logging;
19  
20  import junit.framework.*;
21  
22  
23  /***
24    * <p> The build script calls just one <code>TestSuite</code> - this one!
25    * All tests should be written into separate <code>TestSuite</code>'s
26    * and added to this. Don't clutter this class with implementations. </p>
27    *
28    * <p> This class is based on <code>org.apache.commons.betwixt.TestAll</code> 
29    * coded by James Strachan. </p>
30    *
31    * @author Robert Burrell Donkin
32    * @version $Revision: 1.7 $
33   */
34  public class TestAll extends TestCase {
35  
36      public TestAll(String testName) {
37          super(testName);
38      }
39  
40      
41      public static Test suite() {
42          TestSuite suite = new TestSuite();
43          
44          suite.addTest(SimpleLogTest.suite());
45          suite.addTest(NoOpLogTest.suite());
46          suite.addTest(LogTest.suite());
47          
48          return suite;
49      }
50  
51      /***
52       * This allows the tests to run as a standalone application.
53       */
54      public static void main(String args[]) {
55          String[] testCaseName = { TestAll.class.getName() };
56          junit.textui.TestRunner.main(testCaseName);
57      }
58  }