|
1 |
| package com.agical.rmock.core.action; |
|
2 |
| |
|
3 |
| import com.agical.rmock.core.Action; |
|
4 |
| import com.agical.rmock.core.MethodHandle; |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| public class ForwardingAction implements Action { |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| |
|
17 |
11
| public Object invocation(Object[] arguments, MethodHandle methodHandle) throws Throwable {
|
|
18 |
11
| return methodHandle.invoke(arguments);
|
|
19 |
| } |
|
20 |
| |
|
21 |
1
| public int hashCode() {
|
|
22 |
1
| return 0;
|
|
23 |
| } |
|
24 |
| |
|
25 |
1
| public boolean equals(Object obj) {
|
|
26 |
1
| return obj instanceof ForwardingAction;
|
|
27 |
| } |
|
28 |
| } |