JMock should raise an error when one tries to set an expectation on one of the Object methods
---------------------------------------------------------------------------------------------
Key: JMOCK-190
URL:
http://jira.codehaus.org/browse/JMOCK-190 Project: jMock
Issue Type: Improvement
Components: Library
Affects Versions: 2.4.0
Reporter: Nat Pryce
Assignee: Nat Pryce
Fix For: 2.5.0
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).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email