KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jetspeed > test > JetspeedTestCase


1 /*
2  * Copyright 2000-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.jetspeed.test;
17
18 // JUnit classes
19
import junit.framework.TestCase;
20
21 // Log4j classes
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         // Done
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 JavaDoc name)
48     {
49         super(name);
50     }
51     
52 }
53
54
Popular Tags