ThenReturn vs DoReturn
20th Dec 2021 by Aneesh Mistry
ThenReturn vs DoReturn
Why would we use thenReturn over doReturn and vice versa with Mockito stubbing? This video compares the two methods to understand exactly how they work,
their pros and cons, and when they are most appropriate to use.