InterviewSolution
Saved Bookmarks
| 1. |
Will This Library Help Mocking Closed (non-open) Classes? |
|
Answer» Mockito-Kotlin does not really add any extra FUNCTIONALITY to Mockito. As such, you will still GET exceptions when trying to mock CLOSED classes. If possible, try to use interfaces instead. Mockito provides an incubating, opt-in feature to enable MOCKING closed classes. Mockito-Kotlin does not really add any extra functionality to Mockito. As such, you will still get exceptions when trying to mock closed classes. If possible, try to use interfaces instead. Mockito provides an incubating, opt-in feature to enable mocking closed classes. |
|