Generate unit tests for hashcode,equals and toString methods

java

Solution

Guava uses this test builder to test `equals` and `hashCode`.

Problem

Is there any tool/library which can automatically generate the tests for my hashcode and equals methods looking at the instance variables involved in these methods?

Original source

Related problems