01: /*
02: * Copyright 2006-2007, Unitils.org
03: *
04: * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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.unitils.core;
17:
18: import java.lang.reflect.Method;
19:
20: /**
21: * todo javadoc
22: *
23: * @author Tim Ducheyne
24: * @author Filip Neven
25: */
26: public class TestContext {
27:
28: private Class<?> testClass;
29:
30: private Object testObject;
31:
32: private Method testMethod;
33:
34: public Class<?> getTestClass() {
35: return testClass;
36: }
37:
38: public void setTestClass(Class<?> testClass) {
39: this .testClass = testClass;
40: }
41:
42: public Object getTestObject() {
43: return testObject;
44: }
45:
46: public void setTestObject(Object testObject) {
47: this .testObject = testObject;
48: }
49:
50: public Method getTestMethod() {
51: return testMethod;
52: }
53:
54: public void setTestMethod(Method testMethod) {
55: this.testMethod = testMethod;
56: }
57:
58: }
|