01: /**
02: * Copyright 2007 Jens Dietrich Licensed under the Apache License, Version 2.0 (the "License");
03: * you may not use this file except in compliance with the License.
04: * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
05: * Unless required by applicable law or agreed to in writing, software distributed under the
06: * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
07: * either express or implied. See the License for the specific language governing permissions
08: * and limitations under the License.
09: */package test.nz.org.take;
10:
11: import org.apache.log4j.BasicConfigurator;
12: import junit.framework.TestCase;
13:
14: /**
15: * Abstract superclass for all take tests.
16: * Mainly used to initialise log4j.
17: * @author <a href="http://www-ist.massey.ac.nz/JBDietrich/">Jens Dietrich</a>
18: */
19:
20: public class TakeTestCase extends TestCase {
21:
22: /**
23: * Construct new test instance
24: * @param name the test name
25: */
26: public TakeTestCase(String name) {
27: super (name);
28: }
29:
30: @Override
31: protected void setUp() throws Exception {
32: super .setUp();
33: BasicConfigurator.configure();
34: }
35:
36: @Override
37: protected void tearDown() throws Exception {
38: org.apache.log4j.LogManager.shutdown();
39: super.tearDown();
40: }
41:
42: }
|