Here is a snippet of the relevant parts of some JUnit code that is puzzling me:
This test passes, but I expect it to fail. I expect the size of the set to be 1 instead of two because I am adding two different objects that are equal to one another. I didn't think the second call to add() would add another member to the set because of this equality. What am I missing?
Thanks,
Ken