Skip to content

Commit 9e3a311

Browse files
authored
Test Failures on NonDex Issue-3693 (#3694)
1 parent 5c7f34f commit 9e3a311

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/test/java/com/fasterxml/jackson/databind/format/MapEntryFormatTest.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ public void testDefaultShapeOverride() throws Exception
177177
cfg.setFormat(JsonFormat.Value.forShape(JsonFormat.Shape.OBJECT)))
178178
.build();
179179
Map.Entry<String,String> input = new BeanWithMapEntry("foo", "bar").entry;
180-
assertEquals(a2q("{'key':'foo','value':'bar'}"),
181-
mapper.writeValueAsString(input));
180+
assertTrue(mapper.writeValueAsString(input).equals(a2q("{'key':'foo','value':'bar'}")) || mapper.writeValueAsString(input).equals(a2q("{'value':'bar','key':'foo'}")));
182181
}
183182
}

src/test/java/com/fasterxml/jackson/databind/objectid/TestObjectIdWithEquals.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
public class TestObjectIdWithEquals extends BaseMapTest
1111
{
12+
@JsonPropertyOrder({"id","bars","otherBars"})
1213
@JsonIdentityInfo(generator=ObjectIdGenerators.PropertyGenerator.class, property="id", scope=Foo.class)
1314
static class Foo {
1415
public int id;
@@ -102,7 +103,6 @@ public void testSimpleEquals() throws Exception
102103

103104
String json = mapper.writeValueAsString(foo);
104105
assertEquals("{\"id\":1,\"bars\":[{\"id\":1},{\"id\":2}],\"otherBars\":[1,2]}", json);
105-
106106
Foo foo2 = mapper.readValue(json, Foo.class);
107107
assertNotNull(foo2);
108108
assertEquals(foo.id, foo2.id);

0 commit comments

Comments
 (0)