1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
package net.smartlab.web; |
24 |
|
|
25 |
|
import java.math.BigDecimal; |
26 |
|
import java.math.BigInteger; |
27 |
|
import java.util.Locale; |
28 |
|
import javax.servlet.http.HttpServletRequest; |
29 |
|
import javax.servlet.http.HttpServletResponse; |
30 |
|
import junit.framework.TestCase; |
31 |
|
import org.apache.commons.beanutils.locale.LocaleBeanUtilsBean; |
32 |
|
import org.apache.commons.beanutils.locale.LocaleConvertUtilsBean; |
33 |
|
import org.apache.commons.lang.builder.EqualsBuilder; |
34 |
|
import org.apache.commons.lang.builder.HashCodeBuilder; |
35 |
|
import org.apache.commons.lang.builder.ToStringBuilder; |
36 |
|
import org.apache.struts.action.ActionForm; |
37 |
|
import org.apache.struts.action.ActionForward; |
38 |
|
import org.apache.struts.action.ActionMapping; |
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
@author |
43 |
|
|
|
|
| 97,4% |
Uncovered Elements: 2 (77) |
Complexity: 16 |
Complexity Density: 0,26 |
|
44 |
|
public class ActionTest extends TestCase { |
45 |
|
|
46 |
|
Action mock = new Action() { |
47 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
48 |
0
|
protected ActionForward execute(ActionForm form, HttpServletRequest request, HttpServletResponse response,... |
49 |
|
ActionMapping mapping) throws Exception { |
50 |
|
|
51 |
0
|
return null; |
52 |
|
} |
53 |
|
}; |
54 |
|
|
55 |
|
private Bean beanEmpty; |
56 |
|
|
57 |
|
private Bean beanFull; |
58 |
|
|
59 |
|
private Form formEmpty; |
60 |
|
|
61 |
|
private Form formFull; |
62 |
|
|
63 |
|
|
|
|
| 96,5% |
Uncovered Elements: 4 (113) |
Complexity: 55 |
Complexity Density: 0,96 |
|
64 |
|
public class Form extends ActionForm { |
65 |
|
|
66 |
|
private String bool; |
67 |
|
|
68 |
|
private String[] bools; |
69 |
|
|
70 |
|
private String b; |
71 |
|
|
72 |
|
private String[] bs; |
73 |
|
|
74 |
|
private String s; |
75 |
|
|
76 |
|
private String[] ss; |
77 |
|
|
78 |
|
private String i; |
79 |
|
|
80 |
|
private String[] is; |
81 |
|
|
82 |
|
private String l; |
83 |
|
|
84 |
|
private String[] ls; |
85 |
|
|
86 |
|
private String f; |
87 |
|
|
88 |
|
private String[] fs; |
89 |
|
|
90 |
|
private String d; |
91 |
|
|
92 |
|
private String[] ds; |
93 |
|
|
94 |
|
private String ud; |
95 |
|
|
96 |
|
private String[] uds; |
97 |
|
|
98 |
|
private String sd; |
99 |
|
|
100 |
|
private String[] sds; |
101 |
|
|
102 |
|
private String st; |
103 |
|
|
104 |
|
private String[] sts; |
105 |
|
|
106 |
|
private String ts; |
107 |
|
|
108 |
|
private String[] tss; |
109 |
|
|
110 |
|
private String bi; |
111 |
|
|
112 |
|
private String[] bis; |
113 |
|
|
114 |
|
private String bd; |
115 |
|
|
116 |
|
private String[] bds; |
117 |
|
|
118 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
119 |
1
|
public String getB() {... |
120 |
1
|
return b; |
121 |
|
} |
122 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
123 |
1
|
public void setB(String b) {... |
124 |
1
|
this.b = b; |
125 |
|
} |
126 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
127 |
1
|
public String getBool() {... |
128 |
1
|
return bool; |
129 |
|
} |
130 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
131 |
1
|
public void setBool(String bool) {... |
132 |
1
|
this.bool = bool; |
133 |
|
} |
134 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
135 |
1
|
public String[] getBools() {... |
136 |
1
|
return bools; |
137 |
|
} |
138 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
139 |
1
|
public void setBools(String[] bools) {... |
140 |
1
|
this.bools = bools; |
141 |
|
} |
142 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
143 |
1
|
public String[] getBs() {... |
144 |
1
|
return bs; |
145 |
|
} |
146 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
147 |
1
|
public void setBs(String[] bs) {... |
148 |
1
|
this.bs = bs; |
149 |
|
} |
150 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
151 |
1
|
public String getD() {... |
152 |
1
|
return d; |
153 |
|
} |
154 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
155 |
1
|
public void setD(String d) {... |
156 |
1
|
this.d = d; |
157 |
|
} |
158 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
159 |
1
|
public String[] getDs() {... |
160 |
1
|
return ds; |
161 |
|
} |
162 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
163 |
1
|
public void setDs(String[] ds) {... |
164 |
1
|
this.ds = ds; |
165 |
|
} |
166 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
167 |
1
|
public String getF() {... |
168 |
1
|
return f; |
169 |
|
} |
170 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
171 |
1
|
public void setF(String f) {... |
172 |
1
|
this.f = f; |
173 |
|
} |
174 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
175 |
1
|
public String[] getFs() {... |
176 |
1
|
return fs; |
177 |
|
} |
178 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
179 |
1
|
public void setFs(String[] fs) {... |
180 |
1
|
this.fs = fs; |
181 |
|
} |
182 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
183 |
1
|
public String getI() {... |
184 |
1
|
return i; |
185 |
|
} |
186 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
187 |
1
|
public void setI(String i) {... |
188 |
1
|
this.i = i; |
189 |
|
} |
190 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
191 |
1
|
public String[] getIs() {... |
192 |
1
|
return is; |
193 |
|
} |
194 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
195 |
1
|
public void setIs(String[] is) {... |
196 |
1
|
this.is = is; |
197 |
|
} |
198 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
199 |
1
|
public String getL() {... |
200 |
1
|
return l; |
201 |
|
} |
202 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
203 |
1
|
public void setL(String l) {... |
204 |
1
|
this.l = l; |
205 |
|
} |
206 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
207 |
1
|
public String[] getLs() {... |
208 |
1
|
return ls; |
209 |
|
} |
210 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
211 |
1
|
public void setLs(String[] ls) {... |
212 |
1
|
this.ls = ls; |
213 |
|
} |
214 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
215 |
1
|
public String getS() {... |
216 |
1
|
return s; |
217 |
|
} |
218 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
219 |
1
|
public void setS(String s) {... |
220 |
1
|
this.s = s; |
221 |
|
} |
222 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
223 |
1
|
public String[] getSs() {... |
224 |
1
|
return ss; |
225 |
|
} |
226 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
227 |
1
|
public void setSs(String[] ss) {... |
228 |
1
|
this.ss = ss; |
229 |
|
} |
230 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
231 |
1
|
public String getBd() {... |
232 |
1
|
return bd; |
233 |
|
} |
234 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
235 |
1
|
public void setBd(String bd) {... |
236 |
1
|
this.bd = bd; |
237 |
|
} |
238 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
239 |
1
|
public String[] getBds() {... |
240 |
1
|
return bds; |
241 |
|
} |
242 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
243 |
1
|
public void setBds(String[] bds) {... |
244 |
1
|
this.bds = bds; |
245 |
|
} |
246 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
247 |
1
|
public String getBi() {... |
248 |
1
|
return bi; |
249 |
|
} |
250 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
251 |
1
|
public void setBi(String bi) {... |
252 |
1
|
this.bi = bi; |
253 |
|
} |
254 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
255 |
1
|
public String[] getBis() {... |
256 |
1
|
return bis; |
257 |
|
} |
258 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
259 |
1
|
public void setBis(String[] bis) {... |
260 |
1
|
this.bis = bis; |
261 |
|
} |
262 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
263 |
1
|
public String getSd() {... |
264 |
1
|
return sd; |
265 |
|
} |
266 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
267 |
1
|
public void setSd(String sd) {... |
268 |
1
|
this.sd = sd; |
269 |
|
} |
270 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
271 |
1
|
public String[] getSds() {... |
272 |
1
|
return sds; |
273 |
|
} |
274 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
275 |
1
|
public void setSds(String[] sds) {... |
276 |
1
|
this.sds = sds; |
277 |
|
} |
278 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
279 |
1
|
public String getSt() {... |
280 |
1
|
return st; |
281 |
|
} |
282 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
283 |
1
|
public void setSt(String st) {... |
284 |
1
|
this.st = st; |
285 |
|
} |
286 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
287 |
1
|
public String[] getSts() {... |
288 |
1
|
return sts; |
289 |
|
} |
290 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
291 |
1
|
public void setSts(String[] sts) {... |
292 |
1
|
this.sts = sts; |
293 |
|
} |
294 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
295 |
1
|
public String getTs() {... |
296 |
1
|
return ts; |
297 |
|
} |
298 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
299 |
1
|
public void setTs(String ts) {... |
300 |
1
|
this.ts = ts; |
301 |
|
} |
302 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
303 |
1
|
public String[] getTss() {... |
304 |
1
|
return tss; |
305 |
|
} |
306 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
307 |
1
|
public void setTss(String[] tss) {... |
308 |
1
|
this.tss = tss; |
309 |
|
} |
310 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
311 |
1
|
public String getUd() {... |
312 |
1
|
return ud; |
313 |
|
} |
314 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
315 |
1
|
public void setUd(String ud) {... |
316 |
1
|
this.ud = ud; |
317 |
|
} |
318 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
319 |
1
|
public String[] getUds() {... |
320 |
1
|
return uds; |
321 |
|
} |
322 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
323 |
1
|
public void setUds(String[] uds) {... |
324 |
1
|
this.uds = uds; |
325 |
|
} |
326 |
|
|
|
|
| 66,7% |
Uncovered Elements: 2 (6) |
Complexity: 2 |
Complexity Density: 0,5 |
|
327 |
1
|
public boolean equals(final Object other) {... |
328 |
1
|
if (!(other instanceof Form)) |
329 |
0
|
return false; |
330 |
1
|
Form castOther = (Form)other; |
331 |
1
|
return new EqualsBuilder().append(bool, castOther.bool).append(bools, castOther.bools).append(b, |
332 |
|
castOther.b).append(bs, castOther.bs).append(s, castOther.s).append(ss, castOther.ss).append(i, |
333 |
|
castOther.i).append(is, castOther.is).append(l, castOther.l).append(ls, castOther.ls).append(f, |
334 |
|
castOther.f).append(fs, castOther.fs).append(d, castOther.d).append(ds, castOther.ds).append(ud, |
335 |
|
castOther.ud).append(uds, castOther.uds).append(sd, castOther.sd).append(sds, castOther.sds) |
336 |
|
.append(st, castOther.st).append(sts, castOther.sts).append(ts, castOther.ts).append(tss, |
337 |
|
castOther.tss).append(bi, castOther.bi).append(bis, castOther.bis).append(bd, castOther.bd) |
338 |
|
.append(bds, castOther.bds).isEquals(); |
339 |
|
} |
340 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
341 |
0
|
public int hashCode() {... |
342 |
0
|
return new HashCodeBuilder().append(bool).append(bools).append(b).append(bs).append(s).append(ss).append(i) |
343 |
|
.append(is).append(l).append(ls).append(f).append(fs).append(d).append(ds).append(ud).append(uds) |
344 |
|
.append(sd).append(sds).append(st).append(sts).append(ts).append(tss).append(bi).append(bis) |
345 |
|
.append(bd).append(bds).toHashCode(); |
346 |
|
} |
347 |
|
} |
348 |
|
|
|
|
| 96,5% |
Uncovered Elements: 4 (113) |
Complexity: 55 |
Complexity Density: 0,96 |
|
349 |
|
public class Bean { |
350 |
|
|
351 |
|
private boolean bool; |
352 |
|
|
353 |
|
private boolean[] bools; |
354 |
|
|
355 |
|
private byte b; |
356 |
|
|
357 |
|
private byte[] bs; |
358 |
|
|
359 |
|
private short s; |
360 |
|
|
361 |
|
private short[] ss; |
362 |
|
|
363 |
|
private int i; |
364 |
|
|
365 |
|
private int[] is; |
366 |
|
|
367 |
|
private long l; |
368 |
|
|
369 |
|
private long[] ls; |
370 |
|
|
371 |
|
private float f; |
372 |
|
|
373 |
|
private float[] fs; |
374 |
|
|
375 |
|
private double d; |
376 |
|
|
377 |
|
private double[] ds; |
378 |
|
|
379 |
|
private java.util.Date ud; |
380 |
|
|
381 |
|
private java.util.Date[] uds; |
382 |
|
|
383 |
|
private java.sql.Date sd; |
384 |
|
|
385 |
|
private java.sql.Date[] sds; |
386 |
|
|
387 |
|
private java.sql.Time st; |
388 |
|
|
389 |
|
private java.sql.Time[] sts; |
390 |
|
|
391 |
|
private java.sql.Timestamp ts; |
392 |
|
|
393 |
|
private java.sql.Timestamp[] tss; |
394 |
|
|
395 |
|
private BigInteger bi; |
396 |
|
|
397 |
|
private BigInteger[] bis; |
398 |
|
|
399 |
|
private BigDecimal bd; |
400 |
|
|
401 |
|
private BigDecimal[] bds; |
402 |
|
|
403 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
404 |
1
|
public byte getB() {... |
405 |
1
|
return b; |
406 |
|
} |
407 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
408 |
1
|
public void setB(byte b) {... |
409 |
1
|
this.b = b; |
410 |
|
} |
411 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
412 |
1
|
public boolean isBool() {... |
413 |
1
|
return bool; |
414 |
|
} |
415 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
416 |
1
|
public void setBool(boolean bool) {... |
417 |
1
|
this.bool = bool; |
418 |
|
} |
419 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
420 |
1
|
public boolean[] getBools() {... |
421 |
1
|
return bools; |
422 |
|
} |
423 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
424 |
1
|
public void setBools(boolean[] bools) {... |
425 |
1
|
this.bools = bools; |
426 |
|
} |
427 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
428 |
1
|
public byte[] getBs() {... |
429 |
1
|
return bs; |
430 |
|
} |
431 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
432 |
1
|
public void setBs(byte[] bs) {... |
433 |
1
|
this.bs = bs; |
434 |
|
} |
435 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
436 |
1
|
public double getD() {... |
437 |
1
|
return d; |
438 |
|
} |
439 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
440 |
1
|
public void setD(double d) {... |
441 |
1
|
this.d = d; |
442 |
|
} |
443 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
444 |
1
|
public double[] getDs() {... |
445 |
1
|
return ds; |
446 |
|
} |
447 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
448 |
1
|
public void setDs(double[] ds) {... |
449 |
1
|
this.ds = ds; |
450 |
|
} |
451 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
452 |
1
|
public float getF() {... |
453 |
1
|
return f; |
454 |
|
} |
455 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
456 |
1
|
public void setF(float f) {... |
457 |
1
|
this.f = f; |
458 |
|
} |
459 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
460 |
1
|
public float[] getFs() {... |
461 |
1
|
return fs; |
462 |
|
} |
463 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
464 |
1
|
public void setFs(float[] fs) {... |
465 |
1
|
this.fs = fs; |
466 |
|
} |
467 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
468 |
1
|
public int getI() {... |
469 |
1
|
return i; |
470 |
|
} |
471 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
472 |
1
|
public void setI(int i) {... |
473 |
1
|
this.i = i; |
474 |
|
} |
475 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
476 |
1
|
public int[] getIs() {... |
477 |
1
|
return is; |
478 |
|
} |
479 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
480 |
1
|
public void setIs(int[] is) {... |
481 |
1
|
this.is = is; |
482 |
|
} |
483 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
484 |
1
|
public long getL() {... |
485 |
1
|
return l; |
486 |
|
} |
487 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
488 |
1
|
public void setL(long l) {... |
489 |
1
|
this.l = l; |
490 |
|
} |
491 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
492 |
1
|
public long[] getLs() {... |
493 |
1
|
return ls; |
494 |
|
} |
495 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
496 |
1
|
public void setLs(long[] ls) {... |
497 |
1
|
this.ls = ls; |
498 |
|
} |
499 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
500 |
1
|
public short getS() {... |
501 |
1
|
return s; |
502 |
|
} |
503 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
504 |
1
|
public void setS(short s) {... |
505 |
1
|
this.s = s; |
506 |
|
} |
507 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
508 |
1
|
public short[] getSs() {... |
509 |
1
|
return ss; |
510 |
|
} |
511 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
512 |
1
|
public void setSs(short[] ss) {... |
513 |
1
|
this.ss = ss; |
514 |
|
} |
515 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
516 |
1
|
public BigDecimal getBd() {... |
517 |
1
|
return bd; |
518 |
|
} |
519 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
520 |
1
|
public void setBd(BigDecimal bd) {... |
521 |
1
|
this.bd = bd; |
522 |
|
} |
523 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
524 |
1
|
public BigDecimal[] getBds() {... |
525 |
1
|
return bds; |
526 |
|
} |
527 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
528 |
1
|
public void setBds(BigDecimal[] bds) {... |
529 |
1
|
this.bds = bds; |
530 |
|
} |
531 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
532 |
1
|
public BigInteger getBi() {... |
533 |
1
|
return bi; |
534 |
|
} |
535 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
536 |
1
|
public void setBi(BigInteger bi) {... |
537 |
1
|
this.bi = bi; |
538 |
|
} |
539 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
540 |
1
|
public BigInteger[] getBis() {... |
541 |
1
|
return bis; |
542 |
|
} |
543 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
544 |
1
|
public void setBis(BigInteger[] bis) {... |
545 |
1
|
this.bis = bis; |
546 |
|
} |
547 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
548 |
1
|
public java.sql.Date getSd() {... |
549 |
1
|
return sd; |
550 |
|
} |
551 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
552 |
1
|
public void setSd(java.sql.Date sd) {... |
553 |
1
|
this.sd = sd; |
554 |
|
} |
555 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
556 |
1
|
public java.sql.Date[] getSds() {... |
557 |
1
|
return sds; |
558 |
|
} |
559 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
560 |
1
|
public void setSds(java.sql.Date[] sds) {... |
561 |
1
|
this.sds = sds; |
562 |
|
} |
563 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
564 |
1
|
public java.sql.Time getSt() {... |
565 |
1
|
return st; |
566 |
|
} |
567 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
568 |
1
|
public void setSt(java.sql.Time st) {... |
569 |
1
|
this.st = st; |
570 |
|
} |
571 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
572 |
1
|
public java.sql.Time[] getSts() {... |
573 |
1
|
return sts; |
574 |
|
} |
575 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
576 |
1
|
public void setSts(java.sql.Time[] sts) {... |
577 |
1
|
this.sts = sts; |
578 |
|
} |
579 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
580 |
1
|
public java.sql.Timestamp getTs() {... |
581 |
1
|
return ts; |
582 |
|
} |
583 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
584 |
1
|
public void setTs(java.sql.Timestamp ts) {... |
585 |
1
|
this.ts = ts; |
586 |
|
} |
587 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
588 |
1
|
public java.sql.Timestamp[] getTss() {... |
589 |
1
|
return tss; |
590 |
|
} |
591 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
592 |
1
|
public void setTss(java.sql.Timestamp[] tss) {... |
593 |
1
|
this.tss = tss; |
594 |
|
} |
595 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
596 |
1
|
public java.util.Date getUd() {... |
597 |
1
|
return ud; |
598 |
|
} |
599 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
600 |
1
|
public void setUd(java.util.Date ud) {... |
601 |
1
|
this.ud = ud; |
602 |
|
} |
603 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
604 |
1
|
public java.util.Date[] getUds() {... |
605 |
1
|
return uds; |
606 |
|
} |
607 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
608 |
1
|
public void setUds(java.util.Date[] uds) {... |
609 |
1
|
this.uds = uds; |
610 |
|
} |
611 |
|
|
|
|
| 66,7% |
Uncovered Elements: 2 (6) |
Complexity: 2 |
Complexity Density: 0,5 |
|
612 |
1
|
public boolean equals(final Object other) {... |
613 |
1
|
if (!(other instanceof Bean)) |
614 |
0
|
return false; |
615 |
1
|
Bean castOther = (Bean)other; |
616 |
1
|
return new EqualsBuilder().append(bool, castOther.bool).append(bools, castOther.bools).append(b, |
617 |
|
castOther.b).append(bs, castOther.bs).append(s, castOther.s).append(ss, castOther.ss).append(i, |
618 |
|
castOther.i).append(is, castOther.is).append(l, castOther.l).append(ls, castOther.ls).append(f, |
619 |
|
castOther.f).append(fs, castOther.fs).append(d, castOther.d).append(ds, castOther.ds).append(ud, |
620 |
|
castOther.ud).append(uds, castOther.uds).append(sd, castOther.sd).append(sds, castOther.sds) |
621 |
|
.append(st, castOther.st).append(sts, castOther.sts).append(ts, castOther.ts).append(tss, |
622 |
|
castOther.tss).append(bi, castOther.bi).append(bis, castOther.bis).append(bd, castOther.bd) |
623 |
|
.append(bds, castOther.bds).isEquals(); |
624 |
|
} |
625 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
626 |
0
|
public int hashCode() {... |
627 |
0
|
return new HashCodeBuilder().append(bool).append(bools).append(b).append(bs).append(s).append(ss).append(i) |
628 |
|
.append(is).append(l).append(ls).append(f).append(fs).append(d).append(ds).append(ud).append(uds) |
629 |
|
.append(sd).append(sds).append(st).append(sts).append(ts).append(tss).append(bi).append(bis) |
630 |
|
.append(bd).append(bds).toHashCode(); |
631 |
|
} |
632 |
|
}; |
633 |
|
|
634 |
|
|
635 |
|
|
636 |
|
@see |
637 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (33) |
Complexity: 1 |
Complexity Density: 0,03 |
|
638 |
13
|
protected void setUp() throws Exception {... |
639 |
13
|
super.setUp(); |
640 |
13
|
beanEmpty = new Bean(); |
641 |
13
|
beanFull = new Bean(); |
642 |
13
|
beanFull.bool = true; |
643 |
13
|
beanFull.bools = new boolean[] {true, false, true}; |
644 |
13
|
beanFull.b = 5; |
645 |
13
|
beanFull.bs = new byte[] {Byte.MAX_VALUE, Byte.MIN_VALUE, 0}; |
646 |
13
|
beanFull.s = 6; |
647 |
13
|
beanFull.ss = new short[] {Short.MAX_VALUE, Short.MIN_VALUE, 8, 9}; |
648 |
13
|
beanFull.i = 100; |
649 |
13
|
beanFull.is = new int[] {Integer.MAX_VALUE, Integer.MIN_VALUE, 103}; |
650 |
13
|
beanFull.l = 5000; |
651 |
13
|
beanFull.ls = new long[] {Long.MAX_VALUE, Long.MIN_VALUE, 7000}; |
652 |
13
|
beanFull.f = 300.345f; |
653 |
13
|
beanFull.fs = new float[] {Float.MAX_VALUE, Float.MIN_VALUE, 300.345f}; |
654 |
13
|
beanFull.d = 345.3004; |
655 |
13
|
beanFull.ds = new double[] {Double.MAX_VALUE, Double.MIN_VALUE, 300.345}; |
656 |
13
|
formEmpty = new Form(); |
657 |
13
|
formFull = new Form(); |
658 |
13
|
formFull.bool = "true"; |
659 |
13
|
formFull.bools = new String[] {"true", "false", "true"}; |
660 |
13
|
formFull.b = "5"; |
661 |
13
|
formFull.bs = new String[] {"127", "-128", "0"}; |
662 |
13
|
formFull.s = "6"; |
663 |
13
|
formFull.ss = new String[] {"32767", "-32768", "8", "9"}; |
664 |
13
|
formFull.i = "100"; |
665 |
13
|
formFull.is = new String[] {"2147483647", "-2147483648", "103"}; |
666 |
13
|
formFull.l = "5000"; |
667 |
13
|
formFull.ls = new String[] {"9223372036854775807", "-9223372036854775808", "7000"}; |
668 |
13
|
formFull.f = "300.345"; |
669 |
13
|
formFull.fs = new String[] {"3.4028235E38", "1.4E-45", "300.345"}; |
670 |
13
|
formFull.d = "345.3004"; |
671 |
13
|
formFull.ds = new String[] {"1.7976931348623157E308", "4.9E-324", "300.345"}; |
672 |
|
} |
673 |
|
|
674 |
|
|
675 |
|
@see |
676 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
677 |
13
|
protected void tearDown() throws Exception {... |
678 |
13
|
super.tearDown(); |
679 |
|
} |
680 |
|
|
681 |
|
|
682 |
|
|
683 |
|
@link |
684 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
685 |
1
|
public void testExecuteActionMappingActionFormHttpServletRequestHttpServletResponse() {... |
686 |
1
|
fail("Not yet implemented"); |
687 |
|
} |
688 |
|
|
689 |
|
|
690 |
|
|
691 |
|
@link |
692 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
693 |
1
|
public void testExecuteActionFormHttpServletRequestHttpServletResponseActionMapping() {... |
694 |
1
|
fail("Not yet implemented"); |
695 |
|
} |
696 |
|
|
697 |
|
|
698 |
|
|
699 |
|
@link |
700 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
701 |
1
|
public void testCancel() {... |
702 |
1
|
fail("Not yet implemented"); |
703 |
|
} |
704 |
|
|
705 |
|
|
706 |
|
|
707 |
|
@link |
708 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (12) |
Complexity: 1 |
Complexity Density: 0,08 |
1
PASS
|
|
709 |
1
|
public void testValorize() throws Exception {... |
710 |
|
|
711 |
1
|
LocaleConvertUtilsBean converterItaly = new LocaleConvertUtilsBean(); |
712 |
1
|
converterItaly.setDefaultLocale(Locale.ITALY); |
713 |
1
|
LocaleConvertUtilsBean converterCanada = new LocaleConvertUtilsBean(); |
714 |
1
|
converterCanada.setDefaultLocale(Locale.CANADA); |
715 |
1
|
LocaleBeanUtilsBean utilItaly = new LocaleBeanUtilsBean(converterItaly); |
716 |
1
|
LocaleBeanUtilsBean utilCanada = new LocaleBeanUtilsBean(converterCanada); |
717 |
1
|
super.assertEquals(utilItaly.getDefaultLocale(), Locale.ITALY); |
718 |
1
|
super.assertEquals(utilCanada.getDefaultLocale(), Locale.CANADA); |
719 |
|
|
720 |
1
|
Locale locale = Locale.ITALY; |
721 |
1
|
formFull.bools = new String[] {"yes","no","y"}; |
722 |
1
|
mock.valorize(formFull, beanEmpty, locale); |
723 |
1
|
super.assertEquals(beanFull, beanEmpty); |
724 |
|
} |
725 |
|
|
726 |
|
|
727 |
|
|
728 |
|
@link |
729 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0,33 |
1
PASS
|
|
730 |
1
|
public void testPopulate() throws Exception {... |
731 |
1
|
Locale locale = Locale.ITALY; |
732 |
1
|
mock.populate(formEmpty, beanFull, locale); |
733 |
1
|
super.assertEquals(formFull, formEmpty); |
734 |
|
} |
735 |
|
|
736 |
|
|
737 |
|
|
738 |
|
@link |
739 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
740 |
1
|
public void testReset() {... |
741 |
1
|
fail("Not yet implemented"); |
742 |
|
} |
743 |
|
|
744 |
|
|
745 |
|
|
746 |
|
@link |
747 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
748 |
1
|
public void testHasErrors() {... |
749 |
1
|
fail("Not yet implemented"); |
750 |
|
} |
751 |
|
|
752 |
|
|
753 |
|
|
754 |
|
@link |
755 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
756 |
1
|
public void testAddErrorActionMessageHttpServletRequest() {... |
757 |
1
|
fail("Not yet implemented"); |
758 |
|
} |
759 |
|
|
760 |
|
|
761 |
|
|
762 |
|
@link |
763 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
764 |
1
|
public void testAddErrorStringActionMessageHttpServletRequest() {... |
765 |
1
|
fail("Not yet implemented"); |
766 |
|
} |
767 |
|
|
768 |
|
|
769 |
|
|
770 |
|
@link |
771 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
772 |
1
|
public void testIsChecked() {... |
773 |
1
|
fail("Not yet implemented"); |
774 |
|
} |
775 |
|
|
776 |
|
|
777 |
|
@link |
778 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
779 |
1
|
public void testGetServletContext() {... |
780 |
1
|
fail("Not yet implemented"); |
781 |
|
} |
782 |
|
|
783 |
|
|
784 |
|
|
785 |
|
@link |
786 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
787 |
1
|
public void testGetRealPath() {... |
788 |
1
|
fail("Not yet implemented"); |
789 |
|
} |
790 |
|
|
791 |
|
|
792 |
|
@link |
793 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
794 |
1
|
public void testGetProperties() {... |
795 |
1
|
fail("Not yet implemented"); |
796 |
|
} |
797 |
|
} |