Skip to content

Commit

Permalink
Fix tests wrt databind changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Dec 28, 2024
1 parent 609ca96 commit 0c55d31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void testSimple() throws Exception

ObjectNode main = (ObjectNode) result;
assertEquals("Image", main.propertyNames().next());
JsonNode ob = main.elements().next();
JsonNode ob = main.iterator().next();
assertType(ob, ObjectNode.class);
ObjectNode imageMap = (ObjectNode) ob;

Expand Down Expand Up @@ -61,7 +61,6 @@ public void testSimple() throws Exception
assertTrue(ob.isArray());
ArrayNode idList = (ArrayNode) ob;
assertEquals(4, idList.size());
assertEquals(4, calcLength(idList.elements()));
assertEquals(4, calcLength(idList.iterator()));
{
int[] values = new int[] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void testSimple() throws Exception

ObjectNode main = (ObjectNode) result;
assertEquals("Image", main.propertyNames().next());
JsonNode ob = main.elements().next();
JsonNode ob = main.iterator().next();
assertType(ob, ObjectNode.class);
ObjectNode imageMap = (ObjectNode) ob;

Expand Down Expand Up @@ -61,7 +61,6 @@ public void testSimple() throws Exception
assertTrue(ob.isArray());
ArrayNode idList = (ArrayNode) ob;
assertEquals(4, idList.size());
assertEquals(4, calcLength(idList.elements()));
assertEquals(4, calcLength(idList.iterator()));
{
int[] values = new int[] {
Expand Down

0 comments on commit 0c55d31

Please sign in to comment.