Skip to content

Commit f9dd3cc

Browse files
committed
Minor test clean up pre #4552
1 parent 9aa0eb8 commit f9dd3cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/com/fasterxml/jackson/databind/deser/IncludeWithDeserTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static class MyMap extends HashMap<String, String>
8484
static class MapWrapper
8585
{
8686
@JsonIncludeProperties({"a"})
87-
public final HashMap<String, Integer> value = new HashMap<String, Integer>();
87+
public HashMap<String, Integer> value;
8888
}
8989

9090
@JsonIncludeProperties({"foo", "bar"})
@@ -182,6 +182,7 @@ public void testListInclude() throws Exception
182182
public void testMapWrapper() throws Exception
183183
{
184184
MapWrapper result = MAPPER.readValue(a2q("{'value': {'a': 2, 'b': 3}}"), MapWrapper.class);
185+
assertNotNull(result.value);
185186
assertEquals(2, result.value.get("a").intValue());
186187
assertFalse(result.value.containsKey("b"));
187188
}

0 commit comments

Comments
 (0)