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

View: New views
2 Messages — Rating Filter:   Alert me  

[jira] Created: (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 Threaded | Show Only this Message

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: Steve Freeman


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



[jira] Updated: (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 Threaded | Show Only this Message


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

Nat Pryce updated JMOCK-183:
----------------------------

         Assignee:     (was: Steve Freeman)
    Fix Version/s: 2.7.0

> 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
>             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


LightInTheBox - Buy quality products at wholesale price