File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed
src/test/kotlin/tools/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 tools.jackson.module.kotlin.test.github
22
3+ import com.fasterxml.jackson.annotation.JsonPropertyOrder
34import tools.jackson.core.JsonGenerator
45import tools.jackson.databind.ObjectMapper
56import tools.jackson.databind.ObjectWriter
@@ -39,6 +40,20 @@ class Github464 {
3940 fun <T > getXyzzy () = quux
4041 }
4142
43+ @JsonPropertyOrder(
44+ " foo" ,
45+ " bar" ,
46+ " baz" ,
47+ " qux" ,
48+ " quux" ,
49+ " corge" ,
50+ " grault" ,
51+ " garply" ,
52+ " waldo" ,
53+ " fred" ,
54+ " plugh" ,
55+ " xyzzy"
56+ )
4257 class Poko (
4358 val foo : ValueClass ,
4459 val bar : ValueClass ? ,
@@ -107,8 +122,8 @@ class Github464 {
107122 "1" : null,
108123 "null-key" : null
109124 },
110- "xyzzy " : 0,
111- "plugh " : 0
125+ "plugh " : 0,
126+ "xyzzy " : 0
112127 }
113128 """ .trimIndent(),
114129 writer.writeValueAsString(target)
@@ -145,8 +160,8 @@ class Github464 {
145160 "1" : "null-value",
146161 "null-key" : "null-value"
147162 },
148- "xyzzy " : 0,
149- "plugh " : 0
163+ "plugh " : 0,
164+ "xyzzy " : 0
150165 }
151166 """ .trimIndent(),
152167 writer.writeValueAsString(target)
You can’t perform that action at this time.
0 commit comments