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.Map; |
19 |
|
|
20 |
|
import org.springframework.beans.factory.FactoryBean; |
21 |
|
|
|
|
| 0% |
Uncovered Elements: 14 (14) |
Complexity: 7 |
Complexity Density: 1 |
|
22 |
|
public class MockProxyFactoryBean implements FactoryBean { |
23 |
|
private Class<?> interfaceClass; |
24 |
|
private Map<String,Object> methodReturnMap; |
25 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
26 |
0
|
@Override... |
27 |
|
public Object getObject() throws Exception { |
28 |
0
|
return MockProxy.newInstance(methodReturnMap, interfaceClass); |
29 |
|
} |
30 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
31 |
0
|
@Override... |
32 |
|
public Class<?> getObjectType() { |
33 |
0
|
return interfaceClass; |
34 |
|
} |
35 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
36 |
0
|
@Override... |
37 |
|
public boolean isSingleton() { |
38 |
0
|
return false; |
39 |
|
} |
40 |
|
|
41 |
|
|
42 |
|
@return |
43 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
44 |
0
|
public Class<?> getInterfaceClass() {... |
45 |
0
|
return interfaceClass; |
46 |
|
} |
47 |
|
|
48 |
|
|
49 |
|
@param |
50 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
51 |
0
|
public void setInterfaceClass(Class<?> interfaceClass) {... |
52 |
0
|
this.interfaceClass = interfaceClass; |
53 |
|
} |
54 |
|
|
55 |
|
|
56 |
|
@return |
57 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
58 |
0
|
public Map<String, Object> getMethodReturnMap() {... |
59 |
0
|
return methodReturnMap; |
60 |
|
} |
61 |
|
|
62 |
|
|
63 |
|
@param |
64 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
0
|
public void setMethodReturnMap(Map<String, Object> methodReturnMap) {... |
66 |
0
|
this.methodReturnMap = methodReturnMap; |
67 |
|
} |
68 |
|
|
69 |
|
} |