DEV Community

Dharita Chokshi
Dharita Chokshi

Posted on

How to mock run() method of child thread using mockito-inline

Code explanation MainThread creates ChildThread based on the list of users - one Childthread per user. I am trying to write a unit test case for MainThread and I want to skip the implementation of ChildThread (a separate unit test case will be written for ChildThread). Below is the code…

Top comments (0)