Mockito junit 5 mock constructor

前端 未结 0 686
感情败类
感情败类 2020-11-22 04:24

I want to mock a constructor and return a mock object when the constructor is called. This can be achieved using powermockito\'s whenNew method like this.

Power

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