01: /*
02: * Copyright 2002-2005 the original author or authors.
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:
17: package com.tctest.spring.bean;
18:
19: /**
20: * Interface used for test beans.
21: * Two methods are the same as on Person, but if this
22: * extends person it breaks quite a few tests
23: *
24: * @author Rod Johnson
25: */
26: public interface ITestBean {
27:
28: int getAge();
29:
30: void setAge(int age);
31:
32: String getName();
33:
34: void setName(String name);
35:
36: ITestBean getSpouse();
37:
38: void setSpouse(ITestBean spouse);
39:
40: /**
41: * t null no error
42: */
43: void exceptional(Throwable t) throws Throwable;
44:
45: Object returnsThis();
46:
47: INestedTestBean getDoctor();
48:
49: INestedTestBean getLawyer();
50:
51: IndexedTestBean getNestedIndexedBean();
52:
53: /**
54: * Increment the age by one
55: * @return the previous age
56: *
57: */
58: int haveBirthday();
59:
60: }
|