1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.common.test.mock; |
17 |
|
|
18 |
|
import java.util.HashMap; |
19 |
|
import java.util.Map; |
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
|
|
| 0% |
Uncovered Elements: 13 (13) |
Complexity: 5 |
Complexity Density: 0.71 |
|
27 |
|
public class MockArgumentMapper { |
28 |
|
private Map<Object,Object> argumentMapper; |
29 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
30 |
0
|
public MockArgumentMapper() {... |
31 |
0
|
super(); |
32 |
0
|
argumentMapper = new HashMap<Object, Object>(); |
33 |
|
} |
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
@param |
40 |
|
@return |
41 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
42 |
0
|
public Object getReturnValue(Object[] arguments){... |
43 |
0
|
if (arguments!=null ){ |
44 |
0
|
return argumentMapper.get(arguments[0]); |
45 |
|
} |
46 |
0
|
return null; |
47 |
|
} |
48 |
|
|
49 |
|
|
50 |
|
@return |
51 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
52 |
0
|
public Map<Object, Object> getArgumentMapper() {... |
53 |
0
|
return argumentMapper; |
54 |
|
} |
55 |
|
|
56 |
|
|
57 |
|
@param |
58 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
0
|
public void setArgumentMapper(Map<Object, Object> argumentMapper) {... |
60 |
0
|
this.argumentMapper = argumentMapper; |
61 |
|
} |
62 |
|
|
63 |
|
} |