views:

17

answers:

1

Is it posible to create a partial mock using mockito-flex?

A: 

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.

Kris