Unitils has this functionality:
Equality assertion through reflection, with different options like ignoring Java default/null values and ignoring order of collections
More Related Contents:
- When does HashSet ‘add’ method calls equals? [duplicate]
- What does comparison being consistent with equals mean ? What can possibly happen if my class doesn’t follow this principle?
- Why Java does not see that Integers are equal?
- Demonstrating string comparison with Java
- When “” == s is false but “”.equals( s ) is true
- Difference between null and empty (“”) Java String
- Best way to compare 2 XML documents in Java
- Understanding the workings of equals and hashCode in a HashMap
- Java Embedded Databases Comparison [closed]
- What makes reference comparison (==) work for some strings in Java?
- Time comparison
- How should equals and hashcode be implemented when using JPA and Hibernate
- BigDecimal equals() versus compareTo()
- String comparison and String interning in Java
- Java library to compare image similarity [closed]
- Why should I override hashCode() when I override equals() method?
- Java Embedded Databases Comparison [closed]
- Check if an ArrayList contains every element from another ArrayList (or Collection)
- How to simplify a null-safe compareTo() implementation?
- Should I write equals() and hashCode() methods in JPA entities?
- Comparing chars in Java
- How to check if an integer is in a given range?
- How default .equals and .hashCode will work for my classes?
- Create the perfect JPA entity [closed]
- java.lang.IllegalArgumentException: Comparison method violates its general contract [duplicate]
- Why are these == but not `equals()`?
- Using ‘==’ instead of .equals for Java strings [duplicate]
- String equals and == with String concatenation [duplicate]
- Comparing a string with the empty string (Java)
- How do I compare two Integers? [duplicate]