Search Interview Questions | 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. |
|
| ||||
Interview Questions and Answers | ||||
| ||||
Ans. We can use PowerMockito.verifyStatic for this purpose PowerMockito.verifyStatic(VerificationModeFactory.times(1)); <Class_Name>.<static_method_name>; | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  mocking static methods | ||||
Related Questions | ||||
Have you ever tried mocking static methods ? | ||||
Have you ever used PowerMock ? If yes , which mocking framework you have used it with ? | ||||