File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/test/java/com/fasterxml/jackson/databind/convert Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,17 @@ public class CoerceToBooleanTest extends BaseMapTest
25
25
{
26
26
static class BooleanPOJO {
27
27
public boolean value ;
28
+
29
+ public void setValue (boolean v ) { value = v ; }
28
30
}
29
31
30
32
static class BooleanPrimitiveBean
31
33
{
32
34
public boolean booleanValue = true ;
35
+
36
+ public void setBooleanValue (boolean v ) { booleanValue = v ; }
33
37
}
34
-
38
+
35
39
static class BooleanWrapper {
36
40
public Boolean wrapper ;
37
41
public boolean primitive ;
@@ -42,6 +46,9 @@ static class BooleanWrapper {
42
46
public BooleanWrapper (@ JsonProperty ("ctor" ) Boolean foo ) {
43
47
ctor = foo ;
44
48
}
49
+
50
+ public void setWrapper (Boolean v ) { wrapper = v ; }
51
+ public void setPrimitive (boolean v ) { primitive = v ; }
45
52
}
46
53
47
54
private final ObjectMapper DEFAULT_MAPPER = newJsonMapper ();
You can’t perform that action at this time.
0 commit comments