Update and rename JsonNodeToJsonObjectUnitTest.java to JsonNodeToObjectNodeUnitTest.java
This commit is contained in:
parent
784cb2335c
commit
82cae6f0d4
|
@ -18,7 +18,7 @@ public class JsonNodeToJsonObjectUnitTest {
|
|||
|
||||
ObjectMapper objectMapper = new ObjectMapper();
|
||||
JsonNode jsonNode = objectMapper.readTree(jsonString);
|
||||
ObjectNode objectNode = objectMapper.createObjectNode().setAll((ObjectNode) jsonNode);
|
||||
ObjectNode objectNode = (ObjectNode) jsonNode;
|
||||
|
||||
assertEquals("John", objectNode.get("name").asText());
|
||||
assertEquals("male", objectNode.get("gender").asText());
|
Loading…
Reference in New Issue