开发者

Howto create a partial mock using mockto-flex?

开发者 https://www.devze.com 2023-01-07 15:41 出处:网络
开发者_运维技巧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.

开发者_运维技巧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

精彩评论

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

关注公众号