jMock

Does not verify mocks when throwing an expected exception

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.4.0
  • Fix Version/s: 2.5.0
  • Component/s: JMock 2.x.x Library
  • Labels:
    None
  • Testcase included:
    yes
  • Number of attachments :
    1

Description

Attached a test example that demonstrates the bug. It should fail, but doesn't.

The exception throws straight pass the expectation checking in JMock.

Activity

Hide
Nat Pryce added a comment -

Could you write a test that should pass but doesn't?

Show
Nat Pryce added a comment - Could you write a test that should pass but doesn't?
Hide
Nat Pryce added a comment -

Fixed in SVN for JUnit 4.4.

Fix needs to be reimplemented for JUnit 4.5

Show
Nat Pryce added a comment - Fixed in SVN for JUnit 4.4. Fix needs to be reimplemented for JUnit 4.5

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: