How to mock void methods with Mockito ... Take a look at the Mockito API docs. As the linked document mentions (Point # 12) you can use any of the doThrow() , ...
確定! 回上一頁