Skip to content

Commit 6244aa0

Browse files
authored
Update AnyGetterSorting518Test: remove outdated behavior and move test out of tofix (#5474)
1 parent 57ee5f3 commit 6244aa0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/test/java/tools/jackson/databind/tofix/AnyGetterSorting518Test.java renamed to src/test/java/tools/jackson/databind/ser/AnyGetterSorting518Test.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package tools.jackson.databind.tofix;
1+
package tools.jackson.databind.ser;
22

33
import java.util.HashMap;
44
import java.util.LinkedHashMap;
@@ -11,7 +11,6 @@
1111

1212
import tools.jackson.databind.*;
1313
import tools.jackson.databind.testutil.DatabindTestUtil;
14-
import tools.jackson.databind.testutil.failure.JacksonTestFailureExpected;
1514

1615
import static org.junit.jupiter.api.Assertions.assertEquals;
1716

@@ -44,14 +43,13 @@ public Bean(int a, int b, Map<String,Object> x) {
4443

4544
private final ObjectMapper MAPPER = newJsonMapper();
4645

47-
@JacksonTestFailureExpected
4846
@Test
4947
void anyBeanWithSort() throws Exception
5048
{
5149
Map<String,Object> extra = new LinkedHashMap<>();
5250
extra.put("y", 4);
5351
extra.put("x", 3);
54-
String json = MAPPER.writeValueAsString(new Bean(1, 2, extra));
55-
assertEquals(a2q("{'a':1,'b':2,'x':3,'y':4}"), json);
52+
String json = MAPPER.writeValueAsString(new Bean(2, 1, extra));
53+
assertEquals(a2q("{'a':2,'b':1,'y':4,'x':3}"), json);
5654
}
5755
}

0 commit comments

Comments
 (0)