File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/test/scala/tools/jackson/module/scala/ser Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package tools.jackson.module.scala.ser
22
33import com .fasterxml .jackson .annotation .JsonProperty .Access
44import com .fasterxml .jackson .annotation ._
5- import tools .jackson .databind .{ObjectMapper , PropertyNamingStrategies }
5+ import tools .jackson .databind .{MapperFeature , ObjectMapper , PropertyNamingStrategies }
66import tools .jackson .module .scala .DefaultScalaModule
77
88import scala .beans .BeanProperty
@@ -186,8 +186,10 @@ class CaseClassSerializerTest extends SerializerTest {
186186 def isBoolean = boolean
187187 }
188188 val foo = new Foo (" str" , false )
189- // JSON order for non-constructor params changed in Jackson 3 due to https://github.com/FasterXML/jackson-databind/pull/4572
190- serialize(foo) should equal (""" {"boolean":false,"string":"str"}""" )
189+ val mapper = newBuilder
190+ .disable(MapperFeature .SORT_PROPERTIES_ALPHABETICALLY )
191+ .build()
192+ serialize(foo) should equal (""" {"string":"str","boolean":false}""" )
191193 }
192194
193195 it should " serialize java getters returning java collections" in {
You can’t perform that action at this time.
0 commit comments