Searched refs:MAPPER_TO_FAIL (Results 1 – 3 of 3) sorted by relevance
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/convert/ |
D | CoerceFloatToIntTest.java | 35 private final ObjectMapper MAPPER_TO_FAIL; { field in CoerceFloatToIntTest 36 MAPPER_TO_FAIL = newJsonMapper(); 37 MAPPER_TO_FAIL.coercionConfigFor(LogicalType.Integer) 242 _verifyCoerceFail(MAPPER_TO_FAIL, Integer.class, "1.5"); in testCoerceConfigFailFromFloat() 243 _verifyCoerceFail(MAPPER_TO_FAIL, Integer.TYPE, "1.5"); in testCoerceConfigFailFromFloat() 244 _verifyCoerceFail(MAPPER_TO_FAIL, IntWrapper.class, "{\"i\":-2.25 }", "int"); in testCoerceConfigFailFromFloat() 245 _verifyCoerceFail(MAPPER_TO_FAIL, int[].class, "[ 2.5 ]", "element of `int[]`"); in testCoerceConfigFailFromFloat() 247 _verifyCoerceFail(MAPPER_TO_FAIL, Long.class, "0.5"); in testCoerceConfigFailFromFloat() 248 _verifyCoerceFail(MAPPER_TO_FAIL, Long.TYPE, "-2.5"); in testCoerceConfigFailFromFloat() 249 _verifyCoerceFail(MAPPER_TO_FAIL, LongWrapper.class, "{\"l\": 7.7 }"); in testCoerceConfigFailFromFloat() [all …]
|
D | CoerceToBooleanTest.java | 48 private final ObjectMapper MAPPER_TO_FAIL; { field in CoerceToBooleanTest 49 MAPPER_TO_FAIL = newJsonMapper(); 50 MAPPER_TO_FAIL.coercionConfigFor(LogicalType.Boolean) 199 _verifyFailFromInteger(MAPPER_TO_FAIL, BooleanPOJO.class, DOC_WITH_0, Boolean.TYPE); in testFailFromInteger() 200 _verifyFailFromInteger(MAPPER_TO_FAIL, BooleanPOJO.class, DOC_WITH_1, Boolean.TYPE); in testFailFromInteger() 202 _verifyFailFromInteger(MAPPER_TO_FAIL, Boolean.class, "0"); in testFailFromInteger() 203 _verifyFailFromInteger(MAPPER_TO_FAIL, Boolean.class, "42"); in testFailFromInteger() 205 _verifyFailFromInteger(MAPPER_TO_FAIL, Boolean.TYPE, "0"); in testFailFromInteger() 206 _verifyFailFromInteger(MAPPER_TO_FAIL, Boolean.TYPE, "999"); in testFailFromInteger() 208 _verifyFailFromInteger(MAPPER_TO_FAIL, AtomicBoolean.class, "0"); in testFailFromInteger() [all …]
|
D | CoerceEmptyArrayTest.java | 50 private final ObjectMapper MAPPER_TO_FAIL; field in CoerceEmptyArrayTest 52 MAPPER_TO_FAIL = newJsonMapper(); 53 MAPPER_TO_FAIL.coercionConfigDefaults() 93 _verifyFailForEmptyArray(MAPPER_TO_FAIL, targetType); in testPOJOFromEmptyArray() 129 _verifyFailForEmptyArray(MAPPER_TO_FAIL, targetType); in testMapFromEmptyArray() 168 _verifyFailForEmptyArray(MAPPER_TO_FAIL, targetType); in testNumbersFromEmptyArray() 199 _verifyFailForEmptyArray(MAPPER_TO_FAIL, targetType); in testOtherScalarsFromEmptyArray()
|