The intent of the TCK helper method checkListImmutable is to assert that the third argument otherValue fails to be inserted to the list returned by the second argument listGetter. The current implementation utilizes List#contains for this assertion, but contains relies on equals whereas the test only needs to check object identity. Tests utilizing this method make no assertion regarding a vendor's implementation of equals on the objects in the list.
Fixes #453
The intent of the TCK helper method
checkListImmutable
is to assert that the third argumentotherValue
fails to be inserted to the list returned by the second argumentlistGetter
. The current implementation utilizesList#contains
for this assertion, butcontains
relies onequals
whereas the test only needs to check object identity. Tests utilizing this method make no assertion regarding a vendor's implementation ofequals
on the objects in the list.