Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: JMock 2.x.x Library
-
Labels:None
-
Environment:all
Description
I've been working with a package that drops any exceptions thrown by callbacks that passed to it. If I mock the callbacks and one of them fails because of an incorrect call, the Assertion will be dropped and I'll get the wrong failure message.
I'd like to have an option so that the mocks won't fail until the verify, and then will report everything that happened. I believe this is equivalent to "nice" mocks in easymock.
Issue Links
- is superceded by
-
JMOCK-183
Exceptions thrown by expectations should be caught and available for rethrowing during verification
-
The use case you describe would be satisfied by the change requested in
JMOCK-183JMOCK-183