EqualsVerifier can be used in JUnit unit tests to verify whether the contract for the equals and hashCode methods is met.
<dependency>
<groupId>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier</artifactId>
<version>4.4.2</version>
</dependency>No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Verifies that the equals and hashCode methods of MyClass follow the contract.
No known issues recorded.
No dependency data recorded yet.