« Return to Thread: [jira] Created: (JMOCK-183) Exceptions thrown by expectations should be caught and available for rethrowing during verification

[jira] Assigned: (JMOCK-183) Exceptions thrown by expectations should be caught and available for rethrowing during verification

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View in Thread


     [ http://jira.codehaus.org/browse/JMOCK-183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nat Pryce reassigned JMOCK-183:
-------------------------------

    Assignee: Nat Pryce

> Exceptions thrown by expectations should be caught and available for rethrowing during verification
> ---------------------------------------------------------------------------------------------------
>
>                 Key: JMOCK-183
>                 URL: http://jira.codehaus.org/browse/JMOCK-183
>             Project: jMock
>          Issue Type: Bug
>          Components: Library
>    Affects Versions: 2.4.0
>         Environment: all
>            Reporter: Steve Freeman
>            Assignee: Nat Pryce
>             Fix For: 2.7.0
>
>
> At present, Mockery.assertIsSatisfied() flushes any expectations errors that have been thrown during a test but that have not stopped it. Nat and I can't think of a case where there's a good reason to do this. The effect is that if an ExpectationError is thrown but caught and dropped by the code under test, then the test will pass. What we think /should/ happen is that such exceptions should be recorded (which they are) and rethrown if still present during verification.
> This would invalidate CascadedFailuresAcceptanceTests.testSuccessfulVerifyClearsFirstFailure()

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: [jira] Created: (JMOCK-183) Exceptions thrown by expectations should be caught and available for rethrowing during verification