Created
July 10, 2013 20:37
-
-
Save whaley/5970099 to your computer and use it in GitHub Desktop.
ObjectNode equality? jackson 2.2.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Test | |
| public void testObjectNodesWithKeysInDifferentOrder() { | |
| ObjectNode a = JsonNodeFactory.instance.objectNode(); | |
| a.put("foo",1); | |
| a.put("bar",2); | |
| ObjectNode b = JsonNodeFactory.instance.objectNode(); | |
| b.put("bar",2); | |
| b.put("foo",1); | |
| assertEquals(a,b); //This fails | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment