01: /*
02: * Copyright 2005 Joe Walker
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 org.directwebremoting.create.test;
18:
19: import java.util.List;
20: import java.util.Map;
21:
22: import javax.servlet.http.HttpServletRequest;
23:
24: /**
25: * @author Bram Smeets
26: */
27: public class DummyDataManager extends DummyManagerParent {
28: @Override
29: public void doTest() {
30: // do nothing
31: }
32:
33: public void doTest(String s) {
34: String ignore = s;
35: s = ignore;
36: // do nothing
37: }
38:
39: public void debugger() {
40: // do nothing
41: }
42:
43: @SuppressWarnings("unused")
44: public String testArguments(String s, int i, long l, boolean b,
45: float f, List<?> list, Map<?, ?> map,
46: HttpServletRequest request) {
47: return "testString";
48: }
49:
50: public void doException() throws Exception {
51: throw new Exception("testing");
52: }
53:
54: /* (non-Javadoc)
55: * @see java.lang.Object#equals(java.lang.Object)
56: */
57: @Override
58: public boolean equals(Object obj) {
59: if (obj == this ) {
60: return true;
61: }
62: if (obj != null && obj instanceof DummyDataManager) {
63: //DummyDataManager mgr = (DummyDataManager) obj;
64: return true;
65: }
66: return false;
67: }
68: }
|