Skip to content

Commit 3f117c3

Browse files
authored
Merge pull request #902 from k163377/fix-Github464
Fixing flaky test
2 parents a586f72 + 4e472b3 commit 3f117c3

File tree

1 file changed

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

1 file changed

+19
-5
lines changed

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

Lines changed: 19 additions & 5 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
@@ -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)

0 commit comments

Comments
 (0)