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: 209408 $ $Date: 2005-07-06 06:15:39 +0100 (Wed, 06 Jul 2005) $
29 */
30 public class AvalonLoggerTestCase extends AbstractLogTest {
31
32 public static void main(String[] args) {
33 String[] testCaseName = { AvalonLoggerTestCase.class.getName() };
34 junit.textui.TestRunner.main(testCaseName);
35 }
36
37 public static Test suite() {
38 TestSuite suite = new TestSuite();
39 suite.addTestSuite(AvalonLoggerTestCase.class);
40 return suite;
41 }
42
43 public Log getLogObject() {
44 Log log = new AvalonLogger(new ConsoleLogger());
45 return log;
46 }
47 }