InterviewSolution
Saved Bookmarks
| 1. |
The ___________ method confirms that both references are to the same object.(a) assertEquals(b) assertEqual(c) assertEqualObject(d) assertSameThis question was posed to me by my school teacher while I was bunking the class.My doubt is from Testing the Controller Component topic in section Mastering JUnit of JUnit |
|
Answer» RIGHT OPTION is (d) ASSERTSAME Explanation: assertSame USES the == operator to compare OBJECTS. |
|