1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.jetspeed.test;
17
18
19 import junit.framework.TestCase;
20
21
22 import org.apache.log4j.Logger;
23 import org.apache.log4j.Level;
24 import org.apache.log4j.ConsoleAppender;
25 import org.apache.log4j.SimpleLayout;
26
27 /***
28 * @author <a href="mailto:harald@ommang.com">Harald Ommang</a>
29 *
30 * Base abstract class for testcases with static initialization used to
31 * avoid Log4J configuration warnings
32 *
33 * @version $Id: JetspeedTestCase.java,v 1.1 2004/04/07 22:02:41 jford Exp $
34 */
35 public abstract class JetspeedTestCase extends TestCase
36 {
37
38 static
39 {
40
41 ConsoleAppender ca = new ConsoleAppender(new SimpleLayout());
42 Logger root = Logger.getRootLogger();
43 root.setLevel(Level.INFO);
44 root.addAppender(ca);
45 }
46
47 public JetspeedTestCase(String name)
48 {
49 super(name);
50 }
51
52 }
53