How to use mockery on private classes?

后端 未结 0 1601
余生分开走
余生分开走 2020-12-05 10:45

I want to write an unit test for a method which is using private method getRandNumber(). In my test getRandNumber() should always return 1

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