01: /*
02: * Copyright 2007 The Kuali Foundation
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.kuali.rice.test;
17:
18: import org.apache.log4j.Logger;
19: import org.junit.Assert;
20: import org.junit.runner.RunWith;
21: import org.kuali.rice.test.runners.NamedTestClassRunner;
22:
23: /**
24: * TestCase subclass that merely introduces a protected 'log' member for
25: * subclass access
26: *
27: * @author Kuali Rice Team (kuali-rice@googlegroups.com)
28: * @version $Revision: 1.2.16.1.6.1 $ $Date: 2007/10/17 20:32:04 $
29: * @since 0.9
30: */
31: @RunWith(NamedTestClassRunner.class)
32: public abstract class LoggableTestCase extends Assert {
33:
34: protected final Logger log = Logger.getLogger(getClass());
35:
36: private String name;
37:
38: public LoggableTestCase() {
39: super ();
40: }
41:
42: public String getName() {
43: return this .name;
44: }
45:
46: public void setName(String name) {
47: this.name = name;
48: }
49:
50: }
|