chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes
Hi,

Is there anyway to mock away all of the methods that are called by a particular object? I can manually specify each method name for every expected occurrence. But is there another way to do this without explicitly mocking all the methods?
________
buy no2 vaporizer
asked by nsoonhui (59.1k points)

3 Answers

0 votes
Hi,

Currently there's no API for creating a stub object, without specifying expectations. We can certainly add this to the feature wish list.

What would be the scenario you want use a stub object without verifying the expectations?
answered by gilz (14.5k points)
0 votes
:idea: Take a look at this post (Stub with TypeMock)
answered by eli (5.7k points)
0 votes
Hi,

Currently there's no API for creating a stub object, without specifying expectations. We can certainly add this to the feature wish list.

What would be the scenario you want use a stub object without verifying the expectations?


gilz, what I wanted could be found in the post eli mentioned. Thanks for your help :wink:
________
vaporgenie vaporizer
answered by nsoonhui (59.1k points)
...