Skip to content

Commit

Permalink
Test Failures on NonDex Issue-3693 (#3694)
Browse files Browse the repository at this point in the history
  • Loading branch information
priyanka-28 authored Dec 11, 2022
1 parent 5c7f34f commit 9e3a311
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ public void testDefaultShapeOverride() throws Exception
cfg.setFormat(JsonFormat.Value.forShape(JsonFormat.Shape.OBJECT)))
.build();
Map.Entry<String,String> input = new BeanWithMapEntry("foo", "bar").entry;
assertEquals(a2q("{'key':'foo','value':'bar'}"),
mapper.writeValueAsString(input));
assertTrue(mapper.writeValueAsString(input).equals(a2q("{'key':'foo','value':'bar'}")) || mapper.writeValueAsString(input).equals(a2q("{'value':'bar','key':'foo'}")));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

public class TestObjectIdWithEquals extends BaseMapTest
{
@JsonPropertyOrder({"id","bars","otherBars"})
@JsonIdentityInfo(generator=ObjectIdGenerators.PropertyGenerator.class, property="id", scope=Foo.class)
static class Foo {
public int id;
Expand Down Expand Up @@ -102,7 +103,6 @@ public void testSimpleEquals() throws Exception

String json = mapper.writeValueAsString(foo);
assertEquals("{\"id\":1,\"bars\":[{\"id\":1},{\"id\":2}],\"otherBars\":[1,2]}", json);

Foo foo2 = mapper.readValue(json, Foo.class);
assertNotNull(foo2);
assertEquals(foo.id, foo2.id);
Expand Down

0 comments on commit 9e3a311

Please sign in to comment.