File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed
src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change 11package com.fasterxml.jackson.module.kotlin.test.github
22
3+ import com.fasterxml.jackson.annotation.JsonPropertyOrder
34import com.fasterxml.jackson.core.JsonGenerator
45import com.fasterxml.jackson.databind.JsonSerializer
56import com.fasterxml.jackson.databind.ObjectMapper
@@ -40,7 +41,20 @@ class Github464 {
4041 fun <T > getXyzzy () = quux
4142 }
4243
43-
44+ @JsonPropertyOrder(
45+ " foo" ,
46+ " bar" ,
47+ " baz" ,
48+ " qux" ,
49+ " quux" ,
50+ " corge" ,
51+ " grault" ,
52+ " garply" ,
53+ " waldo" ,
54+ " fred" ,
55+ " plugh" ,
56+ " xyzzy"
57+ )
4458 class Poko (
4559 val foo : ValueClass ,
4660 val bar : ValueClass ? ,
@@ -97,8 +111,8 @@ class Github464 {
97111 "1" : null,
98112 "null-key" : null
99113 },
100- "xyzzy " : 0,
101- "plugh " : 0
114+ "plugh " : 0,
115+ "xyzzy " : 0
102116 }
103117 """ .trimIndent(),
104118 writer.writeValueAsString(target)
@@ -139,8 +153,8 @@ class Github464 {
139153 "1" : "null-value",
140154 "null-key" : "null-value"
141155 },
142- "xyzzy " : 0,
143- "plugh " : 0
156+ "plugh " : 0,
157+ "xyzzy " : 0
144158 }
145159 """ .trimIndent(),
146160 writer.writeValueAsString(target)
You can’t perform that action at this time.
0 commit comments