Tag Archives: Apache Commons

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

Google Guava vs Apache Commons for Argument Validation

Google Guava and Apache Commons both offer utility classes for argument validation. This article describes the differences between them. Continue reading

Posted in Java | Tagged , , , , | 30 Comments

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 , , , , | Leave a comment