阅读背景:

模拟问题,公共函数调用私有函数

来源:互联网 

I’m having a mocking problem. I know only public methods should be mocked. But what do I do when a private method is called in a public method, and this private method is getting data from a file? I want to mock this private method so I could go on in with the test of the public method.I’m having a mocking problem. I know only publi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: