Skip to content

Commit a265d3c

Browse files
committed
Minor test stability improvement
1 parent 5fce6e6 commit a265d3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/fasterxml/jackson/databind/ser/enums/EnumAsFormatObject4564Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import com.fasterxml.jackson.annotation.JsonFormat;
99
import com.fasterxml.jackson.annotation.JsonInclude;
10-
10+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
1111
import com.fasterxml.jackson.core.JsonProcessingException;
1212
import com.fasterxml.jackson.core.type.TypeReference;
1313
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -18,9 +18,9 @@
1818
// [databind#4564] Fix Enum-asJSON-Object serialization with self as field.
1919
public class EnumAsFormatObject4564Test
2020
{
21-
2221
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
2322
@JsonInclude(JsonInclude.Include.NON_NULL)
23+
@JsonPropertyOrder({"label", "sublevel"})
2424
public enum Level {
2525
LEVEL1("level1"),
2626
LEVEL2("level2"),

0 commit comments

Comments
 (0)