I'm using JaVers to compare two objects in a test. I have some expected changes that I want to remove from the list of changes but ValueChange et. al. do not override the default hashCode/equals so I can't use convenient List methods like in change.removeAll(expectedChanges) after which I would assert that the list of changes is empty.
I took a look at ValueChange and some other concrete Change classes and from what I can tell GlobalId, Atomic, etc. all override the default hashCode/equals.
Can ValueChange et. al. be updated to also support structural equality instead of referential equality (default hashCode/equals)?
I'm using JaVers to compare two objects in a test. I have some expected changes that I want to remove from the list of changes but
ValueChangeet. al. do not override the defaulthashCode/equalsso I can't use convenientListmethods like inchange.removeAll(expectedChanges)after which I would assert that the list of changes is empty.I took a look at
ValueChangeand some other concreteChangeclasses and from what I can tellGlobalId,Atomic, etc. all override the defaulthashCode/equals.Can
ValueChangeet. al. be updated to also support structural equality instead of referential equality (defaulthashCode/equals)?