aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/fasterxml/jackson/databind/struct
diff options
context:
space:
mode:
authorTatu Saloranta <tatu.saloranta@iki.fi>2017-03-30 22:24:39 -0700
committerTatu Saloranta <tatu.saloranta@iki.fi>2017-03-30 22:24:39 -0700
commit0e7e87cd7cb7d9861b936d4d8338cd13a76f855c (patch)
tree2918d204f59e043d1ec431badda55fe03d35e137 /src/test/java/com/fasterxml/jackson/databind/struct
parent16ab9246c7d5f989b4f615b73aa0e94aff0e7d18 (diff)
downloadjackson-databind-0e7e87cd7cb7d9861b936d4d8338cd13a76f855c.tar.gz
...
Diffstat (limited to 'src/test/java/com/fasterxml/jackson/databind/struct')
-rw-r--r--src/test/java/com/fasterxml/jackson/databind/struct/ScalarCoercionTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/java/com/fasterxml/jackson/databind/struct/ScalarCoercionTest.java b/src/test/java/com/fasterxml/jackson/databind/struct/ScalarCoercionTest.java
index 224a7a029..de2ca1898 100644
--- a/src/test/java/com/fasterxml/jackson/databind/struct/ScalarCoercionTest.java
+++ b/src/test/java/com/fasterxml/jackson/databind/struct/ScalarCoercionTest.java
@@ -25,13 +25,23 @@ public class ScalarCoercionTest extends BaseMapTest
// first successful coercions
_verifyCoerceSuccess("1", Boolean.TYPE, Boolean.TRUE);
_verifyCoerceSuccess("1", Boolean.class, Boolean.TRUE);
+ _verifyCoerceSuccess(quote("true"), Boolean.TYPE, Boolean.TRUE);
+ _verifyCoerceSuccess(quote("true"), Boolean.class, Boolean.TRUE);
+ _verifyCoerceSuccess(quote("True"), Boolean.TYPE, Boolean.TRUE);
+ _verifyCoerceSuccess(quote("True"), Boolean.class, Boolean.TRUE);
_verifyCoerceSuccess("0", Boolean.TYPE, Boolean.FALSE);
_verifyCoerceSuccess("0", Boolean.class, Boolean.FALSE);
+ _verifyCoerceSuccess(quote("false"), Boolean.TYPE, Boolean.FALSE);
+ _verifyCoerceSuccess(quote("false"), Boolean.class, Boolean.FALSE);
+ _verifyCoerceSuccess(quote("False"), Boolean.TYPE, Boolean.FALSE);
+ _verifyCoerceSuccess(quote("False"), Boolean.class, Boolean.FALSE);
// and then expected fails
/*
_verifyCoerceFail("1", Boolean.TYPE);
_verifyCoerceFail("1", Boolean.class);
+ _verifyCoerceFail(quote("true"), Boolean.TYPE);
+ _verifyCoerceFail(quote("true"), Boolean.class);
*/
}