PowerMock - Interview Questions and Answers for 'Java unit testing' | Search Interview Question - javasearch.buggybread.com

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.
Label / Company      Label / Company / Text


PowerMock - Interview Questions and Answers for 'Java unit testing' - 1 question(s) found - Order By Newest

 Q1. What is doCallRealMethod() method used for ?PowerMock
Ans. When we Mock an object and then make a reference to any method using mocked object reference , java never makes a call to that method and looks for mocked value to be returned or null if none specified. But If we want that to be overridden and want java to make actual method call upon using mocked object reference, this method can be used.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     junit  mocking  java unit testing  Mockito

Related Questions

 Have you ever tried mocking static methods ?
 Have you ever used PowerMock ? If yes , which mocking framework you have used it with ?
 How can you verify if there were interactions with a static method using PowerMock ?

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: