Mockito: How to easily stub a method without mocking all parameters

后端 未结 0 1521
遇见更好的自我
遇见更好的自我 2021-02-11 20:05

I have a method i\'d like to stub but it has a lot of parameters. How can i avoid mocking all parameters but still stub the method.

Ex:

//Method to stub         


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