Testing / Mockito Interview Questions
What is ArgumentCaptor in Mockito?
Mockito ArgumentCaptor is utilized to capture arguments for mocked methods. ArgumentCaptor is utilized with Mockito verify() methods to get the arguments passed when any method is called. This way, we can provide supplemental JUnit assertions for our tests.
More Related questions...