[jira] Created: (JMOCK-219) The JUnit4 Runner does not warn you if you declare multiple mockery objects

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

[jira] Created: (JMOCK-219) The JUnit4 Runner does not warn you if you declare multiple mockery objects

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

Reply to Author | View Threaded | Show Only this Message

The JUnit4 Runner does not warn you if you declare multiple mockery objects
---------------------------------------------------------------------------

                 Key: JMOCK-219
                 URL: http://jira.codehaus.org/browse/JMOCK-219
             Project: jMock
          Issue Type: Improvement
            Reporter: Chris Rimmer
         Attachments: check_that_multiple_Mockeries_are_not_not_declared.patch

If you create a JUnit4 test class and use the JMock test runner it does not warn you if there are multiple Mockery objects declared, even though it will only verify the expectations on the first one it finds.

I attach a patch to fix this, with test case.  Plus I added another test case for when there are no Mockery objects declared at all as a bonus!

--
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] Resolved: (JMOCK-219) The JUnit4 Runner does not warn you if you declare multiple mockery objects

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

Reply to Author | View Threaded | Show Only this Message


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

Nat Pryce resolved JMOCK-219.
-----------------------------

         Assignee: Nat Pryce
       Resolution: Fixed
    Fix Version/s: 2.6.0

Fix committed to SVN

> The JUnit4 Runner does not warn you if you declare multiple mockery objects
> ---------------------------------------------------------------------------
>
>                 Key: JMOCK-219
>                 URL: http://jira.codehaus.org/browse/JMOCK-219
>             Project: jMock
>          Issue Type: Improvement
>            Reporter: Chris Rimmer
>            Assignee: Nat Pryce
>             Fix For: 2.6.0
>
>         Attachments: check_that_multiple_Mockeries_are_not_not_declared.patch
>
>
> If you create a JUnit4 test class and use the JMock test runner it does not warn you if there are multiple Mockery objects declared, even though it will only verify the expectations on the first one it finds.
> I attach a patch to fix this, with test case.  Plus I added another test case for when there are no Mockery objects declared at all as a bonus!

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