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()
78
78
{
79
79
SerializationConfig cfg = MAPPER .getSerializationConfig ();
80
80
81
- // First, defaults:
82
81
assertTrue (cfg .isEnabled (MapperFeature .USE_ANNOTATIONS ));
83
82
assertTrue (cfg .isEnabled (MapperFeature .AUTO_DETECT_GETTERS ));
84
83
assertTrue (cfg .isEnabled (MapperFeature .CAN_OVERRIDE_ACCESS_MODIFIERS ));
@@ -88,14 +87,14 @@ public void testDefaults()
88
87
assertFalse (cfg .isEnabled (SerializationFeature .INDENT_OUTPUT ));
89
88
assertFalse (cfg .isEnabled (MapperFeature .USE_STATIC_TYPING ));
90
89
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 ));
94
92
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 ));
98
95
96
+ assertEquals (MapperFeature .DEFAULT_VIEW_INCLUSION .enabledByDefault (),
97
+ cfg .isEnabled (MapperFeature .DEFAULT_VIEW_INCLUSION ));
99
98
}
100
99
101
100
@ Test
You can’t perform that action at this time.
0 commit comments