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?
Add it to your build like this (please adjust for your build system of choice):
- 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 guides:
- The inspiration for EqualsVerifier.
Fork me on GitHub!
The source for this project is hosted on GitHub.