Home
last modified time | relevance | path

Searched refs:readTree (Results 1 – 25 of 55) sorted by relevance

123

/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/node/
DEmptyContentAsTreeTest.java29 _assertNullTree(MAPPER.readTree(p)); in testNullFromEOFWithParserAndMapper()
32 _assertNullTree(MAPPER.readTree(p)); in testNullFromEOFWithParserAndMapper()
35 _assertNullTree(MAPPER.readTree(p)); in testNullFromEOFWithParserAndMapper()
38 _assertNullTree(MAPPER.readTree(p)); in testNullFromEOFWithParserAndMapper()
42 _assertNullTree(MAPPER.readTree(p)); in testNullFromEOFWithParserAndMapper()
45 _assertNullTree(MAPPER.readTree(p)); in testNullFromEOFWithParserAndMapper()
48 _assertNullTree(MAPPER.readTree(p)); in testNullFromEOFWithParserAndMapper()
51 _assertNullTree(MAPPER.readTree(p)); in testNullFromEOFWithParserAndMapper()
54 _assertNullTree(MAPPER.readTree(p)); in testNullFromEOFWithParserAndMapper()
62 _assertNullTree(MAPPER.reader().readTree(p)); in testNullFromEOFWithParserAndReader()
[all …]
DTreeReadViaMapperTest.java27 result = MAPPER.readTree(new StringReader(JSON)); in testSimple()
29 result = MAPPER.readTree(JSON); in testSimple()
119 JsonNode result = MAPPER.readTree(p); in testEOF()
124 assertNull(MAPPER.readTree(p)); in testEOF()
134 final JsonNode result = MAPPER.readTree(p); in testNullViaParser()
145 JsonNode result = mapper.readTree(p); in testMultiple()
152 result = mapper.readTree(p); in testMultiple()
158 result = mapper.readTree(p); in testMultiple()
162 assertNull(mapper.readTree(p)); in testMultiple()
DTestTreeTraversingParser.java48 JsonNode tree = MAPPER.readTree(JSON); in testSimple()
113 JsonParser p = MAPPER.readTree("[]").traverse(); in testArray()
118 p = MAPPER.readTree("[[]]").traverse(); in testArray()
125 p = MAPPER.readTree("[[ 12.1 ]]").traverse(); in testArray()
140 JsonNode tree = MAPPER.readTree(JSON); in testNested()
171 JsonNode tree = MAPPER.readTree(SAMPLE_DOC_JSON_SPEC); in testSpecDoc()
245 JsonNode tree = MAPPER.readTree in testDataBind()
276 try (final JsonParser p = MAPPER.readTree("[ "+tooBig+" ]").traverse()) { in testNumberOverflowInt()
287 try (final JsonParser p = MAPPER.readTree("{ \"value\" : "+tooBig+" }").traverse()) { in testNumberOverflowInt()
301 try (final JsonParser p = MAPPER.readTree("[ "+tooBig2+" ]").traverse()) { in testNumberOverflowInt()
[all …]
DTestJsonPointer.java11 final JsonNode SAMPLE_ROOT = objectMapper().readTree(SAMPLE_DOC_JSON_SPEC); in testIt()
40 JsonNode root = objectMapper().readTree("{\"123\" : 456}"); in testLongNumbers()
45 root = objectMapper().readTree("{\"35361706045\" : 1234}"); in testLongNumbers()
DTestTreeWithType.java40 JsonNode node = oc.readTree(jsonParser); in deserialize()
67 JsonNode jsonNode = MAPPER.readTree(json); in testValueAsStringWithoutDefaultTyping()
80 JsonNode jsonNode = mapper.readTree(json); in testValueAsStringWithDefaultTyping()
94 JsonNode jsonNode = mapper.readTree(json); in testReadTreeWithDefaultTyping()
DTreeFromIncompleteJsonTest.java25 MAPPER.readTree(json); in testErrorHandling()
31 MAPPER.reader().readTree(json); in testErrorHandling()
DTestNullNode.java67 JsonNode n = MAPPER.readTree("null"); in testNullHandling()
75 n = objectMapper().readTree("null"); in testNullHandling()
80 ObjectNode root = (ObjectNode) objectReader().readTree("{\"x\":null}"); in testNullHandling()
DToStringForNodesTest.java11 … _verifyToStrings(MAPPER.readTree("{ \"key\" : 1, \"b\" : \"x\", \"array\" : [ 1, false ] }")); in testObjectNode()
21 _verifyToStrings(MAPPER.readTree("[ 1, true, null, [ \"abc\",3], { } ]")); in testArrayNode()
DNumberNodesTest.java46 JsonNode result = MAPPER.readTree(String.valueOf(value)); in testIntViaMapper()
127 JsonNode result = MAPPER.readTree(String.valueOf(value)); in testLongViaMapper()
173 JsonNode num = objectMapper().readTree(" -0.0"); in testDouble()
183 JsonNode result = MAPPER.readTree(String.valueOf(value)); in testDoubleViaMapper()
345 JsonNode n2 = mapper.readTree(maxLong.toString()); in testBigIntegerNode()
350 n2 = mapper.readTree(beyondLong.toString()); in testBigIntegerNode()
370 final JsonNode node = mapper.readTree(INPUT); in testBigDecimalAsPlain()
DRequiredAccessorTest.java16 TEST_OBJECT = MAPPER.readTree(aposToQuotes( in RequiredAccessorTest()
21 TEST_ARRAY = MAPPER.readTree(aposToQuotes( in RequiredAccessorTest()
DTestJsonNode.java45 JsonNode result = objectMapper().readTree("true\n"); in testBoolean()
183 JsonNode array = mapper.readTree("[ 1, 2 ]"); in testArrayWithDefaultTyping()
187 JsonNode obj = mapper.readTree("{ \"a\" : 2 }"); in testArrayWithDefaultTyping()
DObjectNodeTest.java77 JsonNode root = MAPPER.readTree(JSON); in testSimpleObject()
378 ObjectNode root = (ObjectNode) MAPPER.readTree(DUP_JSON); in testFailOnDupKeys()
383 MAPPER.reader(DeserializationFeature.FAIL_ON_READING_DUP_TREE_KEY).readTree(DUP_JSON); in testFailOnDupKeys()
426 JsonNode root = MAPPER.readTree("{ \"results\" : { \"a\" : 3 } }"); in testSimplePath()
DTestConversions.java163 JsonNode root = mapper.readTree(JSON); in testTreeToValue()
248 JsonNode node = MAPPER.readTree(buf.asParser()); in testEmbeddedByteArray()
314 …JsonNode tree = MAPPER.readTree("{\"longObj\": "+EXP+".0, \"_class\": \""+LongContainer1940.class.… in testBufferedLongViaCoercion()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/validate/
DFullStreamReadTest.java41 _verifyArray(MAPPER.readTree(JSON_OK_ARRAY)); in testMapperAcceptTrailing()
42 _verifyArray(MAPPER.readTree(JSON_OK_ARRAY_WITH_COMMENT)); in testMapperAcceptTrailing()
43 _verifyArray(MAPPER.readTree(JSON_FAIL_ARRAY)); in testMapperAcceptTrailing()
52 assertTrue(MAPPER.readTree(JSON_OK_NULL).isNull()); in testMapperAcceptTrailing()
53 assertTrue(MAPPER.readTree(JSON_OK_NULL_WITH_COMMENT).isNull()); in testMapperAcceptTrailing()
54 assertTrue(MAPPER.readTree(JSON_FAIL_NULL).isNull()); in testMapperAcceptTrailing()
69 _verifyArray(strict.readTree(JSON_OK_ARRAY)); in testMapperFailOnTrailing()
74 strict.readTree(JSON_FAIL_ARRAY); in testMapperFailOnTrailing()
99 strict.readTree(JSON_OK_ARRAY_WITH_COMMENT); in testMapperFailOnTrailing()
108 _verifyArray(strictWithComments.readTree(JSON_OK_ARRAY_WITH_COMMENT)); in testMapperFailOnTrailing()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/objectid/
DObjectWithCreator1261Test.java76 JsonNode tree = mapper.readTree(initialAnswerString); in testObjectIds1261()
81 JsonNode newTree = mapper.readTree(reserializedAnswerString); in testObjectIds1261()
/external/oss-fuzz/projects/jackson-dataformats-binary/
DSmileFuzzer.java25 mapper.readTree(input); in fuzzerTestOneInput()
DCborFuzzer.java25 mapper.readTree(input); in fuzzerTestOneInput()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/failing/
DNumberNodes1770Test.java21 .readTree("7976931348623157e309"); in testBigDecimalCoercion()
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/
DTreeCodec.java13 …public abstract <T extends TreeNode> T readTree(JsonParser p) throws IOException, JsonProcessingEx… in readTree() method in TreeCodec
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/misc/
DParsingContext2525Test.java86 JsonNode root = MAPPER.readTree(MINIMAL_ARRAY_DOC); in testSimpleArrayWithTree()
94 JsonNode root = MAPPER.readTree(MINIMAL_OBJECT_DOC); in testSimpleObjectWithTree()
102 JsonNode root = MAPPER.readTree(FULL_DOC); in testFullDocWithTree()
/external/oss-fuzz/projects/jackson-core/
DJsonFuzzer.java40 mapper.readTree(data.consumeRemainingAsBytes()); in fuzzerTestOneInput()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/deftyping/
DTestDefaultForArrays.java76 JsonNode node = new ObjectMapper().readTree("{\"a\":3}"); in testNodeInArray()
99 JsonNode node = new ObjectMapper().readTree("{\"a\":[]}"); in testNodeInEmptyArray()
DTestDefaultForTreeNodes.java32 JsonNode jsonNode = DEFAULT_MAPPER.readTree(json); in testValueAsStringWithDefaultTyping()
/external/jackson-databind/src/test/java/perf/
DManualReadPerfUntyped.java34 JsonNode input2 = m.readTree(data); in main()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/
DBase64DecodingTest.java40 JsonNode tree = mapper.readTree(String.format("{\"foo\":\"%s\"}", value)); in _testInvalidBase64()

123