1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 {;
31 PathableTestSuite suite = new PathableTestSuite(NullTCCLTestCase.class, null);
32 return suite;
33 }
34
35
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 }