[ http://issues.apache.org/jira/browse/JDO-154?page=all ]
Craig Russell resolved JDO-154:
-------------------------------
Resolution: Fixed
I added a test to verify that a second putUserObject overwrites the first value
and returns it.
Committed version 326179.
> Add tests for getUserObject, putUserObject, removeUserObject
> ------------------------------------------------------------
>
> Key: JDO-154
> URL: http://issues.apache.org/jira/browse/JDO-154
> Project: JDO
> Type: Test
> Components: tck20
> Reporter: Craig Russell
> Assignee: Craig Russell
> Attachments: JDO-154.patch
>
> Assertion 12.11-1 PersistenceManager APIs
> Object putUserObject(Object key, Object value); This method models the put
> method of Map. The current value associated with the key is returned and
> replaced by the parameter value. If the parameter value is null, the
> implementation may remove the entry from the table of managed key/value pairs
> Object removeUserObject(Object key); This method models the remove method of
> Map. The current value associated with the key is re turned and removed
> Object getUserObject(Object key); This method models the get method of Map.
> The current value associated with the key is returned. If the key is not
> found in the table, null is returned.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira