Update json data
This commit is contained in:
parent
8ebe69f176
commit
36eacfb3c3
@ -17,5 +17,7 @@
|
|||||||
"color":"red",
|
"color":"red",
|
||||||
"price":19.95
|
"price":19.95
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"url":"mystore.com",
|
||||||
|
"owner":"baeldung"
|
||||||
}
|
}
|
@ -33,7 +33,7 @@ public class JsonPathUnitTest {
|
|||||||
@Test
|
@Test
|
||||||
public void shouldMatchCountOfObjects() {
|
public void shouldMatchCountOfObjects() {
|
||||||
Map<String, String> objectMap = JsonPath.read(json, "$");
|
Map<String, String> objectMap = JsonPath.read(json, "$");
|
||||||
assertEquals(1, objectMap.keySet()
|
assertEquals(3, objectMap.keySet()
|
||||||
.size());
|
.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user