[jira] Created: (JMOCK-170) Allow expectations to not fail immediately if there's an unexpected invocation

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

[jira] Created: (JMOCK-170) Allow expectations to not fail immediately if there's an unexpected invocation

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

Reply to Author | View Threaded | Show Only this Message

Allow expectations to not fail immediately if there's an unexpected invocation
------------------------------------------------------------------------------

                 Key: JMOCK-170
                 URL: http://jira.codehaus.org/browse/JMOCK-170
             Project: jMock
          Issue Type: New Feature
          Components: Library
         Environment: all
            Reporter: Steve Freeman
            Assignee: Steve Freeman


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.

--
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] Closed: (JMOCK-170) Allow expectations to not fail immediately if there's an unexpected invocation

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

Reply to Author | View Threaded | Show Only this Message


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

Nat Pryce closed JMOCK-170.
---------------------------

    Resolution: Duplicate

Subsumed by JMOCK-183

> Allow expectations to not fail immediately if there's an unexpected invocation
> ------------------------------------------------------------------------------
>
>                 Key: JMOCK-170
>                 URL: http://jira.codehaus.org/browse/JMOCK-170
>             Project: jMock
>          Issue Type: New Feature
>          Components: Library
>         Environment: all
>            Reporter: Steve Freeman
>            Assignee: Steve Freeman
>
> 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.

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