Skip to content

Commit b0d7a1b

Browse files
committed
Unit test defaults fix
1 parent bc66348 commit b0d7a1b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/java/com/fasterxml/jackson/databind/jsontype/jdk/TypedArraySerTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ static class BeanListWrapper {
7575
/**********************************************************
7676
*/
7777

78-
private final ObjectMapper MAPPER = new ObjectMapper();
78+
// Since one of the tests uses VIEW inclusion, let's specify inclusion
79+
// (as default varies between Jackson 2.x and 3.x)
80+
private final ObjectMapper MAPPER = jsonMapperBuilder()
81+
.enable(MapperFeature.DEFAULT_VIEW_INCLUSION)
82+
.build();
7983

8084
@Test
8185
public void testListWithPolymorphic() throws Exception

0 commit comments

Comments
 (0)