Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java mockito print called methods

import static org.mockito.Mockito.mockingDetails;

System.out.println(mockingDetails(mock).printInvocations());
/* or */
System.out.println(mockingDetails(mock).getInvocations());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #mockito #print #called #methods
ADD COMMENT
Topic
Name
5+2 =