Skip to content

Commit

Permalink
Merge pull request #696 from bmk15897/fix-flaky-test
Browse files Browse the repository at this point in the history
Update JSONPointerTest for NonDex compatibility
  • Loading branch information
stleary committed Oct 15, 2022
2 parents 1be6ee3 + a2d3d3c commit 98df354
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test/java/org/json/junit/JSONPointerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ public void queryByEmptyKey() {

@Test
public void queryByEmptyKeySubObject() {
assertEquals( "{\"\":\"empty key of an object with an empty key\",\"subKey\":\"Some" +
" other value\"}", query("/obj/").toString());
JSONObject json = new JSONObject("{\"\":\"empty key of an object with an empty key\",\"subKey\":\"Some" +
" other value\"}");
JSONObject obj = (JSONObject) query("/obj/");
assertTrue(json.similar(obj));
}

@Test
Expand Down

0 comments on commit 98df354

Please sign in to comment.