jMock

JMock should raise an error when one tries to set an expectation on one of the Object methods

Details

  • Type: Improvement Improvement
  • 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
  • Number of attachments :
    0

Description

JMock does not allow you to mock out any methods defined in the Object class. Those methods are implemented by jMock to do the right thing.

However, you can set expectations on them, which is very confusing.

If you set an expectation on a method defined in Object.class, jMock should report a programming error (IllegalArgumentException or IllegalStateException).

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: