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

[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 in Thread

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


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