Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

mockito throw exception void method

doThrow(new Exception()).when(mockedObject).methodReturningVoid(...);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mockito #throw #exception #void #method
ADD COMMENT
Topic
Name
2+8 =