Skip to content

Commit

Permalink
Fixed com.fasterxml.jackson.databind.node.TestConversions#testValueTo…
Browse files Browse the repository at this point in the history
…Tree (#4227)
  • Loading branch information
saurabh-shetty authored Nov 28, 2023
1 parent 2874cf6 commit a4879d6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ public void testValueToTree() throws Exception

// Act & Assert
String expected = "{\"event\":{\"id\":1,\"name\":\"foo\"}}";
assertEquals(expected, wrapRootMapper.writeValueAsString(value));
assertEquals(expected, wrapRootMapper.valueToTree(value).toString());
assertEquals(wrapRootMapper.readValue(expected, Map.class), wrapRootMapper.readValue(wrapRootMapper.writeValueAsString(value), Map.class));
assertEquals(wrapRootMapper.readValue(expected, Map.class), wrapRootMapper.readValue(wrapRootMapper.valueToTree(value).toString(), Map.class));
}
}

0 comments on commit a4879d6

Please sign in to comment.