File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
src/test/java/com/fasterxml/jackson/databind/ser Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ public void testDefaults()
7878 {
7979 SerializationConfig cfg = MAPPER .getSerializationConfig ();
8080
81- // First, defaults:
8281 assertTrue (cfg .isEnabled (MapperFeature .USE_ANNOTATIONS ));
8382 assertTrue (cfg .isEnabled (MapperFeature .AUTO_DETECT_GETTERS ));
8483 assertTrue (cfg .isEnabled (MapperFeature .CAN_OVERRIDE_ACCESS_MODIFIERS ));
@@ -88,14 +87,14 @@ public void testDefaults()
8887 assertFalse (cfg .isEnabled (SerializationFeature .INDENT_OUTPUT ));
8988 assertFalse (cfg .isEnabled (MapperFeature .USE_STATIC_TYPING ));
9089
91- // since 1.3:
92- assertTrue (cfg .isEnabled (MapperFeature .AUTO_DETECT_IS_GETTERS ));
93- // since 1.4
90+ assertEquals (MapperFeature .AUTO_DETECT_IS_GETTERS .enabledByDefault (),
91+ cfg .isEnabled (MapperFeature .AUTO_DETECT_IS_GETTERS ));
9492
95- assertTrue (cfg .isEnabled (SerializationFeature .FAIL_ON_EMPTY_BEANS ));
96- // since 1.5
97- assertTrue (cfg .isEnabled (MapperFeature .DEFAULT_VIEW_INCLUSION ));
93+ assertEquals (SerializationFeature .FAIL_ON_EMPTY_BEANS .enabledByDefault (),
94+ cfg .isEnabled (SerializationFeature .FAIL_ON_EMPTY_BEANS ));
9895
96+ assertEquals (MapperFeature .DEFAULT_VIEW_INCLUSION .enabledByDefault (),
97+ cfg .isEnabled (MapperFeature .DEFAULT_VIEW_INCLUSION ));
9998 }
10099
101100 @ Test
You can’t perform that action at this time.
0 commit comments