1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.commons.logging.avalon;
17
18 import org.apache.avalon.framework.logger.ConsoleLogger;
19 import org.apache.commons.logging.impl.AvalonLogger;
20 import org.apache.commons.logging.Log;
21 import org.apache.commons.logging.AbstractLogTest;
22
23 import junit.framework.Test;
24 import junit.framework.TestSuite;
25
26 /***
27 * @author <a href="mailto:neeme@apache.org">Neeme Praks</a>
28 * @version $Revision: 1.4 $ $Date: 2004/02/28 21:46:45 $
29 */
30 public class AvalonLoggerTest extends AbstractLogTest {
31
32 public static void main(String[] args) {
33 String[] testCaseName = { AvalonLoggerTest.class.getName() };
34 junit.textui.TestRunner.main(testCaseName);
35 }
36
37 public static Test suite() {
38 TestSuite suite = new TestSuite();
39 suite.addTestSuite(AvalonLoggerTest.class);
40 return suite;
41 }
42
43 public AvalonLoggerTest(String testName) {
44 super(testName);
45 }
46
47 public Log getLogObject() {
48 Log log = new AvalonLogger(new ConsoleLogger());
49 return log;
50 }
51 }