Concrete Change
classes: implement structural equality
#384
Labels
Change
classes: implement structural equality
#384
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 defaulthashCode
/equals
so I can't use convenientList
methods like inchange.removeAll(expectedChanges)
after which I would assert that the list of changes is empty.I took a look at
ValueChange
and some other concreteChange
classes and from what I can tellGlobalId
,Atomic
, etc. all override the defaulthashCode
/equals
.Can
ValueChange
et. al. be updated to also support structural equality instead of referential equality (defaulthashCode
/equals
)?The text was updated successfully, but these errors were encountered: