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
2
2
3
3
import com .fasterxml .jackson .annotation .JsonProperty .Access
4
4
import com .fasterxml .jackson .annotation ._
5
- import tools .jackson .databind .{ObjectMapper , PropertyNamingStrategies }
5
+ import tools .jackson .databind .{MapperFeature , ObjectMapper , PropertyNamingStrategies }
6
6
import tools .jackson .module .scala .DefaultScalaModule
7
7
8
8
import scala .beans .BeanProperty
@@ -186,8 +186,10 @@ class CaseClassSerializerTest extends SerializerTest {
186
186
def isBoolean = boolean
187
187
}
188
188
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}""" )
191
193
}
192
194
193
195
it should " serialize java getters returning java collections" in {
You can’t perform that action at this time.
0 commit comments