Skip to content

Commit e6e5a5f

Browse files
committed
another test fix
1 parent 5d8312b commit e6e5a5f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/test/java/com/fasterxml/jackson/dataformat/xml/failing/TestUnwrappedDeserIssue86.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.util.Arrays;
44
import java.util.List;
5+
import java.util.Objects;
56

67
import com.fasterxml.jackson.annotation.JsonInclude.Include;
78
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
@@ -39,7 +40,17 @@ public boolean equals(final Object other) {
3940
}
4041

4142
final Issue86 otherIssue86 = (Issue86) other;
42-
return otherIssue86.id.equals(id) && otherIssue86.children.equals(children);
43+
return Objects.equals(id, otherIssue86.id)
44+
&& Objects.deepEquals(children, otherIssue86.children);
45+
}
46+
47+
@Override
48+
public String toString() {
49+
StringBuilder sb = new StringBuilder();
50+
sb.append("{id='").append(id)
51+
.append("', children=").append(children)
52+
.append('}');
53+
return sb.toString();
4354
}
4455
}
4556

0 commit comments

Comments
 (0)