Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

mockito when with void function

doAnswer(invocation -> {

      return null;
    }).when(object).method(any());
 
PREVIOUS NEXT
Tagged: #mockito #void #function
ADD COMMENT
Topic
Name
5+6 =