diff --git a/src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/Github464.kt b/src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/Github464.kt index 92f3e0639..766d9dd27 100644 --- a/src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/Github464.kt +++ b/src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/Github464.kt @@ -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 @@ -41,6 +42,20 @@ class Github464 { fun getXyzzy() = quux } + @JsonPropertyOrder( + "foo", + "bar", + "baz", + "qux", + "quux", + "corge", + "grault", + "garply", + "waldo", + "fred", + "plugh", + "xyzzy" + ) class Poko( val foo: ValueClass, val bar: ValueClass?, @@ -106,8 +121,8 @@ class Github464 { "1" : null, "null-key" : null }, - "xyzzy" : 0, - "plugh" : 0 + "plugh" : 0, + "xyzzy" : 0 } """.trimIndent(), writer.writeValueAsString(target) @@ -142,8 +157,8 @@ class Github464 { "1" : "null-value", "null-key" : "null-value" }, - "xyzzy" : 0, - "plugh" : 0 + "plugh" : 0, + "xyzzy" : 0 } """.trimIndent(), writer.writeValueAsString(target)