[jira] Created: (JMOCK-190) JMock should raise an error when one tries to set an expectation on one of the Object methods

View: New views
2 Messages — Rating Filter:   Alert me  

[jira] Created: (JMOCK-190) JMock should raise an error when one tries to set an expectation on one of the Object methods

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



[jira] Resolved: (JMOCK-190) JMock should raise an error when one tries to set an expectation on one of the Object methods

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/JMOCK-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nat Pryce resolved JMOCK-190.
-----------------------------

    Resolution: Fixed

Fix committed to SVN

> 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


LightInTheBox - Buy quality products at wholesale price