marcossilvadecastro / googlemock

Automatically exported from code.google.com/p/googlemock
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Need an action to throw an exception #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Possible Enhancement:

I have legacy code that uses exceptions from collaborating classes.

I would like to do something like:

EXPECT_CALL(obj, func())
     .Times(1)
     .WillOnce(Throw(MyException()));

I have some prototypes working but have more to do.

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by ecurbks...@gmail.com on 25 Dec 2008 at 4:34

GoogleCodeExporter commented 9 years ago

Original comment by shiq...@gmail.com on 26 Dec 2008 at 6:59

GoogleCodeExporter commented 9 years ago
This is in the trunk and will be part of the next release.

Original comment by zhanyong...@gmail.com on 6 Feb 2009 at 7:42