Skip to content

Commit 32dbb29

Browse files
authored
Merge pull request #903 from k163377/merge
2.18
2 parents 39a15a9 + c5294ec commit 32dbb29

File tree

1 file changed

+19
-4
lines changed
  • src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github

1 file changed

+19
-4
lines changed

src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/Github464.kt

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.fasterxml.jackson.module.kotlin.test.github
22

3+
import com.fasterxml.jackson.annotation.JsonPropertyOrder
34
import com.fasterxml.jackson.core.JsonGenerator
45
import com.fasterxml.jackson.databind.JsonSerializer
56
import 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)

0 commit comments

Comments
 (0)