1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.common_test_tester.support; |
17 |
|
|
18 |
|
import javax.jws.WebService; |
19 |
|
|
20 |
|
import org.apache.log4j.Logger; |
21 |
|
import org.springframework.transaction.annotation.Transactional; |
22 |
|
|
23 |
|
@WebService(endpointInterface = "org.kuali.student.common_test_tester.support.MyService", serviceName = "MyService", portName = "MyService", targetNamespace = "http://student.kuali.org/poc/wsdl/test/my") |
24 |
|
@Transactional |
|
|
| 69.7% |
Uncovered Elements: 10 (33) |
Complexity: 13 |
Complexity Density: 0.72 |
|
25 |
|
public class MyServiceImpl implements MyService { |
26 |
|
final Logger LOG = Logger.getLogger(MyServiceImpl.class); |
27 |
|
private MyDao dao0; |
28 |
|
private OtherDao otherDao; |
29 |
|
private SomeClass myClass; |
30 |
|
|
31 |
|
|
32 |
|
@return |
33 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
34 |
0
|
public MyDao getDao0() {... |
35 |
0
|
return dao0; |
36 |
|
} |
37 |
|
|
38 |
|
|
39 |
|
@param |
40 |
|
|
41 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
42 |
2
|
public void setDao0(MyDao dao0) {... |
43 |
2
|
this.dao0 = dao0; |
44 |
|
} |
45 |
|
|
46 |
|
|
47 |
|
@return |
48 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
49 |
0
|
public OtherDao getOtherDao() {... |
50 |
0
|
return otherDao; |
51 |
|
} |
52 |
|
|
53 |
|
|
54 |
|
@param |
55 |
|
|
56 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
57 |
2
|
public void setOtherDao(OtherDao otherDao) {... |
58 |
2
|
this.otherDao = otherDao; |
59 |
|
} |
60 |
|
|
|
|
| 66.7% |
Uncovered Elements: 4 (12) |
Complexity: 3 |
Complexity Density: 0.38 |
|
61 |
4
|
@Override... |
62 |
|
public String saveString(String value) { |
63 |
4
|
if(myClass==null){ |
64 |
0
|
throw new RuntimeException("ListIsNull"); |
65 |
|
} |
66 |
4
|
LOG.info("######==" + dao0); |
67 |
4
|
if (dao0 == null) { |
68 |
0
|
return ""; |
69 |
|
} |
70 |
4
|
String id = this.dao0.createValue(new Value(value)); |
71 |
4
|
this.otherDao.foo(); |
72 |
4
|
return id; |
73 |
|
} |
74 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
75 |
3
|
@Override... |
76 |
|
public String findStringId(String id) { |
77 |
3
|
return this.dao0.findValue(id); |
78 |
|
} |
79 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
80 |
1
|
@Override... |
81 |
|
public boolean updateValue(String id, String value) { |
82 |
1
|
return this.dao0.updateValue(id, value); |
83 |
|
} |
84 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
85 |
1
|
@Override... |
86 |
|
public String findValueFromValue(String value) { |
87 |
1
|
return this.dao0.findValueFromValue(value).getValue(); |
88 |
|
} |
89 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
90 |
0
|
public SomeClass getMyClass() {... |
91 |
0
|
return myClass; |
92 |
|
} |
93 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
94 |
3
|
public void setMyClass(SomeClass myClass) {... |
95 |
3
|
this.myClass = myClass; |
96 |
|
} |
97 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
98 |
1
|
@Override... |
99 |
|
public String echo(String string) { |
100 |
1
|
return "Echo: "+ string; |
101 |
|
} |
102 |
|
|
103 |
|
} |