WELCOME Abdennour : Software engineer

Mar 6, 2013

assertsEquals VS assertSame

What's the difference between assertsEquals and assertSame

assertsEquals([String message], expected, actual):
         Tests that two values are the same. Note: for arrays the reference is checked not the content of the arrays.

assertSame([String], expected, actual)  :
                    Checks that both variables refer to the same object.

Demo : 
( not yet)

No comments:

Post a Comment