Skip to content

Commit f0af53d

Browse files
committed
Minor tweaks to tests
1 parent da8bd5f commit f0af53d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/test/java/com/fasterxml/jackson/databind/deser/jdk/MapDeserializationTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ public void testBigUntypedMap() throws Exception
106106
}
107107
String json = MAPPER.writeValueAsString(map);
108108
Object bound = MAPPER.readValue(json, Object.class);
109+
110+
assertTrue(bound instanceof Map<?,?>);
111+
assertEquals(map.size(), ((Map<?,?>) bound).size());
109112
assertEquals(map, bound);
110113
}
111114

src/test/java/com/fasterxml/jackson/databind/ser/TestTreeSerialization.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final static class Bean {
2222
}
2323

2424
@SuppressWarnings("unchecked")
25-
public void testSimpleViaObjectMapper()
25+
public void testSimpleViaObjectMapper()
2626
throws IOException
2727
{
2828
ObjectMapper mapper = new ObjectMapper();
@@ -44,6 +44,7 @@ public void testSimpleViaObjectMapper()
4444
Map<String,Object> ob = (Map<String,Object>) result.get("ob");
4545
assertEquals(1, ob.size());
4646
List<Object> list = (List<Object>) ob.get("arr");
47+
assertNotNull(list);
4748
assertEquals(0, list.size());
4849
jg.close();
4950
}

0 commit comments

Comments
 (0)