001 /* 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017 package org.apache.commons.logging.avalon; 018 019 import org.apache.avalon.framework.logger.ConsoleLogger; 020 import org.apache.commons.logging.impl.AvalonLogger; 021 import org.apache.commons.logging.Log; 022 import org.apache.commons.logging.AbstractLogTest; 023 024 import junit.framework.Test; 025 import junit.framework.TestSuite; 026 027 /** 028 * @author <a href="mailto:neeme@apache.org">Neeme Praks</a> 029 * @version $Revision: 581090 $ $Date: 2007-10-02 00:01:06 +0200 (ti, 02 okt 2007) $ 030 */ 031 public class AvalonLoggerTestCase extends AbstractLogTest { 032 033 public static void main(String[] args) { 034 String[] testCaseName = { AvalonLoggerTestCase.class.getName() }; 035 junit.textui.TestRunner.main(testCaseName); 036 } 037 038 public static Test suite() { 039 TestSuite suite = new TestSuite(); 040 suite.addTestSuite(AvalonLoggerTestCase.class); 041 return suite; 042 } 043 044 public Log getLogObject() { 045 Log log = new AvalonLogger(new ConsoleLogger()); 046 return log; 047 } 048 }