Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

mockito mock void methods

Mockito.doThrow().when(mockObject).methodReturningVoid(any());
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #mockito #mock #void #methods
ADD COMMENT
Topic
Name
4+3 =