The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

jmgimeno (69) [Avatar] Offline
#1
I find confusing your definition of asserSame. I quote:

Asserts that the A and B objects have the same
value. While the previous assert method checks to
see that both the A and B are the same objects
(using equals method), the assertSame
method actually checks to see if the A and B
objects have the same value (using == operator).

- assertSame is not about the same value but about referring the same object.
- when referring the previous assert method (assertEquals) you seem to imply that it check if A and B are the same object, which does not make sense because it uses equals !!!!

Thanks.