Skip to content

Commit 0c55d31

Browse files
committed
Fix tests wrt databind changes
1 parent 609ca96 commit 0c55d31

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

cbor/src/test/java/tools/jackson/dataformat/cbor/mapper/TreeReadViaMapperTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void testSimple() throws Exception
2727

2828
ObjectNode main = (ObjectNode) result;
2929
assertEquals("Image", main.propertyNames().next());
30-
JsonNode ob = main.elements().next();
30+
JsonNode ob = main.iterator().next();
3131
assertType(ob, ObjectNode.class);
3232
ObjectNode imageMap = (ObjectNode) ob;
3333

@@ -61,7 +61,6 @@ public void testSimple() throws Exception
6161
assertTrue(ob.isArray());
6262
ArrayNode idList = (ArrayNode) ob;
6363
assertEquals(4, idList.size());
64-
assertEquals(4, calcLength(idList.elements()));
6564
assertEquals(4, calcLength(idList.iterator()));
6665
{
6766
int[] values = new int[] {

smile/src/test/java/tools/jackson/dataformat/smile/mapper/TreeReadViaMapperTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void testSimple() throws Exception
2727

2828
ObjectNode main = (ObjectNode) result;
2929
assertEquals("Image", main.propertyNames().next());
30-
JsonNode ob = main.elements().next();
30+
JsonNode ob = main.iterator().next();
3131
assertType(ob, ObjectNode.class);
3232
ObjectNode imageMap = (ObjectNode) ob;
3333

@@ -61,7 +61,6 @@ public void testSimple() throws Exception
6161
assertTrue(ob.isArray());
6262
ArrayNode idList = (ArrayNode) ob;
6363
assertEquals(4, idList.size());
64-
assertEquals(4, calcLength(idList.elements()));
6564
assertEquals(4, calcLength(idList.iterator()));
6665
{
6766
int[] values = new int[] {

0 commit comments

Comments
 (0)