We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e54123 commit c889d3fCopy full SHA for c889d3f
src/test/scala/com/fasterxml/jackson/module/scala/ser/OptionSerializerTest.scala
@@ -90,9 +90,10 @@ class OptionSerializerTest extends SerializerTest {
90
}
91
92
it should "honor JsonInclude.Include.NON_NULL" in {
93
- val nonNullMapper = newMapper
94
- nonNullMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL)
95
- nonNullMapper.writeValueAsString(new NonNullOption()) should be ("{}")
+ // See https://github.com/FasterXML/jackson-datatype-jdk8/issues/1 for more information.
+ newMapper
+ .setSerializationInclusion(JsonInclude.Include.NON_NULL)
96
+ .writeValueAsString(new NonNullOption()) should be ("""{"foo":null}""")
97
98
99
it should "generate correct schema for options" in {
0 commit comments