KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > logging > avalon > AvalonLoggerTest


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 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 JavaDoc[] args) {
33         String JavaDoc[] 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 JavaDoc testName) {
44         super(testName);
45     }
46
47     public Log getLogObject() {
48         Log log = new AvalonLogger(new ConsoleLogger());
49         return log;
50     }
51 }
Popular Tags