Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cleanup test
  • Loading branch information
brenbar committed Jan 20, 2025
commit 3c08b90cf3b6f66e13b9d614cc989fe91ab1889f
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,11 @@ public void testMixedKeys()
map.put("2", "two");

byte[] bytes = mapper.writeValueAsBytes(map);
Map<Object, Object> deserialized = mapper.readValue(bytes, new TypeReference<Map<Object, Object>>() {});
Map<Object, Object> deserializedInit = mapper.readValue(bytes, new TypeReference<Map<Object, Object>>() {});

assertEquals(map, deserialized);
Map<Object, Object> expected = new HashMap<>(map);
Map<Object, Object> actual = new HashMap<>(deserializedInit);

assertEquals(expected, actual);
}
}