jMock

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

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major 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 :
    1

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!

Activity

Hide
Nat Pryce added a comment -

Fix committed to SVN

Show
Nat Pryce added a comment - Fix committed to SVN

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: