Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.6.0
-
Component/s: None
-
Labels:None
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
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!
Fix committed to SVN