More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know.
Ans. There is no guarantee that the mock will get called as callMethod may never get called. Verify is to make sure that the method gets called. Mock is it return 1 if the method gets called so they both are kind of independent things.
Help us improve. Please let us know the company, where you were asked this question :