Tag Archives: Equals

Reflection-Based Object Comparison in Tests

Using reflection is a convenient way to compare objects in unit tests. The Unitils library provides reflection-based assertions. Continue reading

Posted in Java | Tagged , , , , | Leave a comment

Maintainable HashCode and Equals Using Apache Commons

Using reflection based equals and hashCode from Apache Commons is a more maintainable alternative to code generation in the IDE. Continue reading

Posted in Java | Tagged , , , , | 1 Comment