Stubbing void method using mockito is not working

后端 未结 0 1184
臣服心动
臣服心动 2020-12-24 03:50
doThrow(new Exception()).when(service.method(anyString(), anyBoolean(), anyString()));

Does not working because the method returns void.



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题