Have you ever written an
equals method, along with five screens of unit tests to test it? Or worse: not bothered to test it at all, because “the IDE generates it anyway”?
EqualsVerifier helps you. Testing
equals can be as simple as:
And EqualsVerifier even gives you 100% coverage on
Sounds great, how do I use it?
- If you want to get started quickly, read the getting started page.
- If you want to learn more, read the manual, or watch the video:
If you’re interested, there’s more to read:
- The FAQ.
- The changelog.
- The migration guide, if you’re migrating from version 1.x to 2.x.
- The inspiration for EqualsVerifier.
Fork me on GitHub!
The source for this project is hosted on GitHub.