Skip to content

Commit

Permalink
Merge pull request #902 from k163377/fix-Github464
Browse files Browse the repository at this point in the history
Fixing flaky test
  • Loading branch information
k163377 authored Feb 1, 2025
2 parents a586f72 + 4e472b3 commit 3f117c3
Showing 1 changed file with 19 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.fasterxml.jackson.module.kotlin.test.github

import com.fasterxml.jackson.annotation.JsonPropertyOrder
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.databind.JsonSerializer
import com.fasterxml.jackson.databind.ObjectMapper
Expand Down Expand Up @@ -40,7 +41,20 @@ class Github464 {
fun <T> getXyzzy() = quux
}


@JsonPropertyOrder(
"foo",
"bar",
"baz",
"qux",
"quux",
"corge",
"grault",
"garply",
"waldo",
"fred",
"plugh",
"xyzzy"
)
class Poko(
val foo: ValueClass,
val bar: ValueClass?,
Expand Down Expand Up @@ -97,8 +111,8 @@ class Github464 {
"1" : null,
"null-key" : null
},
"xyzzy" : 0,
"plugh" : 0
"plugh" : 0,
"xyzzy" : 0
}
""".trimIndent(),
writer.writeValueAsString(target)
Expand Down Expand Up @@ -139,8 +153,8 @@ class Github464 {
"1" : "null-value",
"null-key" : "null-value"
},
"xyzzy" : 0,
"plugh" : 0
"plugh" : 0,
"xyzzy" : 0
}
""".trimIndent(),
writer.writeValueAsString(target)
Expand Down

0 comments on commit 3f117c3

Please sign in to comment.