I'm assuming you get this error when you call EqualsVerifier on your
"Point" class?
If so, you need to call it like this:
EqualsVerifier.forClass(Point.class)
.withRedefinedSubclass(ColorPoint.class)
.verify();
That way, EV will know that you want to be able to override equals in
your subclasses. Otherwise, it will assume that you don't. It has to
do different checks for that case.
Did you solve your earlier problem, with the IllegalArgumentException?
Regards,
Jan
> Actually, I'm calling EV from my "ClientePF" class, that is something
> like the "ColorPoint" example.
>
> Any suggestion about this symmetry problem?
In that case, you should call it like this:
EqualsVerifier.forClass(ColorPoint.class)
.withRedefinedSuperclass()
.verify();
Maybe I should explain this stuff in the FAQ ...
BTW, you should use EV on all the classes in the hierarchy, including
the super/base class, for maximum coverage.
> About the previous problem, I couldn't
> fix it yet. Still fixing other stuff, before I can send you the code.
Ok, let me know when you do -- I'd love to find out how to reproduce
that error :).
> Anyway, thanks for the quick answers... =)
You're welcome.
Jan
You can solve the Recursive datastructures by calling
.withPrefabValue(...), with some instances of the Date class, as the
error message suggests :).
See also http://code.google.com/p/equalsverifier/issues/detail?id=30
For the IllegalArgumentExceptions, I really need to see some code,
because I have no idea what could cause this ... it might be a bug in
EqualsVerifier, but I'm not sure.
Regards,
Jan