How to stub void methods
27th Dec 2021 by Aneesh Mistry

How to stub a void method

This video will look ath the different ways that we can control our system under test when using void methods with Mockito. This video explores how we would want to handle void methods when using a mock or a spy, and how the answer functional interface also presents unique ways to provide custom logic to a void method, and when it would be most appropriate.

YouTube video link


Share this post