开发者

Howto create a partial mock using mockto-flex?

开发者_运维技巧Is it posible to create a partial mock using mockito-flex?


Mockito-flex does not support partial mocks at this point. However you can make your mock object call original functions.

given(someone.something(any())).will(callOriginal());

You could add a convenience function that makes your mock call originals for all public functions and properties.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜