mockito test void method throw exception

mockito test void method throw exception
doThrow(new Exception()).when(mockedObject).methodReturningVoid(...);
Source:w‮ww‬.lautturi.com
Created Time:2017-10-05 00:00:26  Author:lautturi