mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 11:25:30 -04:00
Fix Flaky Test
This commit is contained in:
parent
d51250f6b0
commit
a2d3d3c9b5
@ -72,8 +72,10 @@ public class JSONPointerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void queryByEmptyKeySubObject() {
|
public void queryByEmptyKeySubObject() {
|
||||||
assertEquals( "{\"\":\"empty key of an object with an empty key\",\"subKey\":\"Some" +
|
JSONObject json = new JSONObject("{\"\":\"empty key of an object with an empty key\",\"subKey\":\"Some" +
|
||||||
" other value\"}", query("/obj/").toString());
|
" other value\"}");
|
||||||
|
JSONObject obj = (JSONObject) query("/obj/");
|
||||||
|
assertTrue(json.similar(obj));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user