1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.properties.test; |
21 |
|
|
22 |
|
import java.util.List; |
23 |
|
|
24 |
|
import org.xwiki.properties.annotation.PropertyDescription; |
25 |
|
import org.xwiki.properties.annotation.PropertyHidden; |
26 |
|
import org.xwiki.properties.annotation.PropertyId; |
27 |
|
import org.xwiki.properties.annotation.PropertyMandatory; |
28 |
|
import org.xwiki.properties.annotation.PropertyName; |
29 |
|
|
|
|
| 81.2% |
Uncovered Elements: 6 (32) |
Complexity: 16 |
Complexity Density: 1 |
|
30 |
|
public class TestBean |
31 |
|
{ |
32 |
|
public static final String STATICFIELD = "staticfield"; |
33 |
|
|
34 |
|
private String lowerprop; |
35 |
|
|
36 |
|
private String upperProp; |
37 |
|
|
38 |
|
private String prop1 = "defaultprop1"; |
39 |
|
|
40 |
|
private int prop2; |
41 |
|
|
42 |
|
private boolean prop3; |
43 |
|
|
44 |
|
private String hiddenProperty; |
45 |
|
|
46 |
|
private List<Integer> genericProp; |
47 |
|
|
48 |
|
public String propertyWithDifferentId; |
49 |
|
|
50 |
|
@PropertyName("Public Field") |
51 |
|
@PropertyDescription("a public field") |
52 |
|
public String publicField; |
53 |
|
|
54 |
|
public List<Integer> genericField; |
55 |
|
|
56 |
|
@PropertyId("impossible.field.name") |
57 |
|
public String publicFieldWithDifferentId; |
58 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
1 |
public void setLowerprop(String lowerprop)... |
60 |
|
{ |
61 |
1 |
this.lowerprop = lowerprop; |
62 |
|
} |
63 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
64 |
14 |
public String getLowerprop()... |
65 |
|
{ |
66 |
14 |
return this.lowerprop; |
67 |
|
} |
68 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
1 |
public void setUpperProp(String upperProp)... |
70 |
|
{ |
71 |
1 |
this.upperProp = upperProp; |
72 |
|
} |
73 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
74 |
14 |
public String getUpperProp()... |
75 |
|
{ |
76 |
14 |
return this.upperProp; |
77 |
|
} |
78 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
79 |
0 |
@PropertyDescription("prop1 description")... |
80 |
|
public void setProp1(String prop1) |
81 |
|
{ |
82 |
0 |
this.prop1 = prop1; |
83 |
|
} |
84 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
85 |
13 |
public String getProp1()... |
86 |
|
{ |
87 |
13 |
return this.prop1; |
88 |
|
} |
89 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
90 |
1 |
@PropertyMandatory... |
91 |
|
@PropertyDescription("prop2 description") |
92 |
|
public void setProp2(int prop2) |
93 |
|
{ |
94 |
1 |
this.prop2 = prop2; |
95 |
|
} |
96 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
97 |
14 |
public int getProp2()... |
98 |
|
{ |
99 |
14 |
return this.prop2; |
100 |
|
} |
101 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
102 |
1 |
public void setProp3(boolean prop3)... |
103 |
|
{ |
104 |
1 |
this.prop3 = prop3; |
105 |
|
} |
106 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
107 |
14 |
@PropertyMandatory... |
108 |
|
@PropertyDescription("prop3 description") |
109 |
|
public boolean getProp3() |
110 |
|
{ |
111 |
14 |
return this.prop3; |
112 |
|
} |
113 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
114 |
0 |
@PropertyHidden... |
115 |
|
public void setHiddenProperty(String hiddenProperty) |
116 |
|
{ |
117 |
0 |
this.hiddenProperty = hiddenProperty; |
118 |
|
} |
119 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
120 |
1 |
public String getHiddenProperty()... |
121 |
|
{ |
122 |
1 |
return this.hiddenProperty; |
123 |
|
} |
124 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
125 |
14 |
public List<Integer> getGenericProp()... |
126 |
|
{ |
127 |
14 |
return this.genericProp; |
128 |
|
} |
129 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
130 |
1 |
public void setGenericProp(List<Integer> genericProp)... |
131 |
|
{ |
132 |
1 |
this.genericProp = genericProp; |
133 |
|
} |
134 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
135 |
13 |
@PropertyId("impossible.method.name")... |
136 |
|
public String getPropertyWithDifferentId() |
137 |
|
{ |
138 |
13 |
return this.propertyWithDifferentId; |
139 |
|
} |
140 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
141 |
0 |
public void setPropertyWithDifferentId(String propertyWithDifferentId)... |
142 |
|
{ |
143 |
0 |
this.propertyWithDifferentId = propertyWithDifferentId; |
144 |
|
} |
145 |
|
} |