File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed
src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github Expand file tree Collapse file tree 1 file changed +19
-4
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
@@ -41,6 +42,20 @@ class Github464 {
4142 fun <T > getXyzzy () = quux
4243 }
4344
45+ @JsonPropertyOrder(
46+ " foo" ,
47+ " bar" ,
48+ " baz" ,
49+ " qux" ,
50+ " quux" ,
51+ " corge" ,
52+ " grault" ,
53+ " garply" ,
54+ " waldo" ,
55+ " fred" ,
56+ " plugh" ,
57+ " xyzzy"
58+ )
4459 class Poko (
4560 val foo : ValueClass ,
4661 val bar : ValueClass ? ,
@@ -106,8 +121,8 @@ class Github464 {
106121 "1" : null,
107122 "null-key" : null
108123 },
109- "xyzzy " : 0,
110- "plugh " : 0
124+ "plugh " : 0,
125+ "xyzzy " : 0
111126 }
112127 """ .trimIndent(),
113128 writer.writeValueAsString(target)
@@ -142,8 +157,8 @@ class Github464 {
142157 "1" : "null-value",
143158 "null-key" : "null-value"
144159 },
145- "xyzzy " : 0,
146- "plugh " : 0
160+ "plugh " : 0,
161+ "xyzzy " : 0
147162 }
148163 """ .trimIndent(),
149164 writer.writeValueAsString(target)
You can’t perform that action at this time.
0 commit comments