Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

mockito when with void function

ArgumentCaptor<String> valueCapture = ArgumentCaptor.forClass(String.class);
doNothing().when(object).someMethod(string1, valueCapture.capture());
 
PREVIOUS NEXT
Tagged: #mockito #void #function
ADD COMMENT
Topic
Name
4+5 =