1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 }