mockito-callbacks
Testing Callbacks with Mockito 1. Overview In this short tutorial, we’ll focus on how to test Callbacks using the popular testing framework Mockito. We’ll explore two solutions, firstly using an ArgumentCaptor and then the intuitive doAnswer() method. To learn more about testing well with Mockito, check out our Mockito series here.… Continue Reading mockito-callbacks