EqualsVerifier can be used in Java unit tests to verify whether the contract for the equals and hashCode methods in a class is met.
For documentation, please see the project's website.
To build EqualsVerifier, you need Maven. Just call
mvn clean verify from the command-line, and you're done. Alternatively, you can use any IDE with Maven support.
Main EqualsVerifier logic
Internally used exceptions
Annotations used by integration tests
Unit tests for specific subcomponents of EqualsVerifier
Code coverage tests, which fail if coverage is less than 100%
Integration tests that cover the contract as stated in
Integration tests that cover specific corner cases in the Java language, and other essential points that are discussed in other sources, such as Effective Java, but not in the javadoc
Integration tests that cover non-standard situations that EqualsVerifier supports
Integration tests that cover inheritance in equality relations
Integration tests that cover issues that don't pertain to equals or hashCode themselves, but to EqualsVerifier's operation
Utility classes for use in tests
Annotations used by unit tests and integration tests
More annotations which would clash with other annotations because of casing
Various data classes for use in unit tests and integration tests
Unit tests for the reflection helpers
Copyright 2009-2017 Jan Ouwens