KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > logging > tccl > NullTCCLTestCase


1 /*
2  * Copyright 2006 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.tccl;
17
18 import org.apache.commons.logging.Log;
19 import org.apache.commons.logging.LogFactory;
20 import org.apache.commons.logging.PathableTestSuite;
21
22 import junit.framework.Test;
23 import junit.framework.TestCase;
24
25 /**
26  * Simulates the case when TCCL is set to NULL.
27  */

28 public class NullTCCLTestCase extends TestCase {
29
30     public static Test suite() throws Exception JavaDoc {;
31         PathableTestSuite suite = new PathableTestSuite(NullTCCLTestCase.class, null);
32         return suite;
33     }
34
35     // test methods
36

37     /**
38      * This test just tests that a log implementation can be found
39      * by the LogFactory.
40      */

41     public void testGetLog() {
42          Log log = LogFactory.getLog(NullTCCLTestCase.class);
43          log.debug("Hello, Mum");
44     }
45 }
46
Popular Tags