Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
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 :
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).
Fix committed to SVN