01: package wicket.proxy.util;
02:
03: /**
04: * @see IObjectMethodTester
05: *
06: * @author Igor Vaynberg (ivaynberg)
07: *
08: */
09: public class ObjectMethodTester implements IObjectMethodTester {
10: private boolean valid = true;
11:
12: /**
13: * Constructor
14: */
15: public ObjectMethodTester() {
16: valid = true;
17: }
18:
19: /**
20: * @see wicket.proxy.util.IObjectMethodTester#isValid()
21: */
22: public boolean isValid() {
23: return valid;
24: }
25:
26: /**
27: * @see wicket.proxy.util.IObjectMethodTester#reset()
28: */
29: public void reset() {
30: valid = true;
31: }
32:
33: /**
34: * @see wicket.proxy.util.IObjectMethodTester#equals(java.lang.Object)
35: */
36: public boolean equals(Object obj) {
37: valid = false;
38: return super .equals(obj);
39: }
40:
41: /**
42: * @see wicket.proxy.util.IObjectMethodTester#hashCode()
43: */
44: public int hashCode() {
45: valid = false;
46: return super .hashCode();
47: }
48:
49: /**
50: * @see wicket.proxy.util.IObjectMethodTester#toString()
51: */
52: public String toString() {
53: valid = false;
54: return super.toString();
55: }
56:
57: }
|