InterviewSolution
Saved Bookmarks
| 1. |
Why do we need mocking in unit testing? |
|
Answer» MOCKING is the process of creating and using mock objects that simulates the behaviour of real objects and is used to isolate the behaviour of the module under test from its external dependencies or services. These are particularly useful in unit testing and help in making unit test cases repeatable and PREDICTABLE. Mocking is required in the following cases:
|
|