In certain scenarios like if we have no control or handle of argument passed into a mock we can use Mockito ArgumentCaptor to verify if certain arguments where passed to mocks. The complete source code used in this article can be cloned from github package com.ourownjava.tdd.mockito.capture; /** * * @author Sanju Thomas * */ public […]
Continue reading…