I tried the Unitils tool which is really great, but doesn't provide you an option for excluding fields. The only way by doing this is to set null
the objects and enable the IGNORE_DEFAULTS
flag, but in my case, it's not helpful, since I've got some ids autogenerated by the system. So if I could just add the id to an exclude list it would be perfect.
I also tried Mockito's ReflectionEquals
but it was not helpful, since I need a field-to-field comparison.
Is there something else helpful? I have been searching for hours without success.
Thank you in advance!