|
1 |
| package com.agical.rmock.core.expectation.reference; |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| public class BasicObjectReference implements ObjectReference { |
|
9 |
| |
|
10 |
| private final Object object; |
|
11 |
| |
|
12 |
9
| public BasicObjectReference( Object object ) {
|
|
13 |
9
| super();
|
|
14 |
9
| this.object = object;
|
|
15 |
| } |
|
16 |
| |
|
17 |
1
| public String getId() {
|
|
18 |
1
| return object.toString();
|
|
19 |
| } |
|
20 |
| |
|
21 |
1
| public String getName() {
|
|
22 |
1
| return object.getClass().getName();
|
|
23 |
| } |
|
24 |
| |
|
25 |
1
| public Class getType() {
|
|
26 |
1
| return object.getClass();
|
|
27 |
| } |
|
28 |
| |
|
29 |
| |
|
30 |
| |
|
31 |
| |
|
32 |
| |
|
33 |
| |
|
34 |
| |
|
35 |
| |
|
36 |
| |
|
37 |
| |
|
38 |
| |
|
39 |
| |
|
40 |
| } |