KickJava   Java API By Example, From Geeks To Geeks.

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


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: 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 JavaDoc[] args) {
33         String JavaDoc[] 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 }
48
Popular Tags