Issue Details (XML | Word | Printable)

Key: JDO-154
Type: Test Test
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Craig Russell
Reporter: Craig Russell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

Add tests for getUserObject, putUserObject, removeUserObject

Created: 02/Oct/05 10:16 PM   Updated: 23/Apr/06 03:10 AM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: JDO 2 beta

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works JDO-154.patch 2005-10-02 10:23 PM Craig Russell 5 kB

Resolution Date: 23/Apr/06 03:10 AM


 Description  « Hide
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.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Craig Russell added a comment - 02/Oct/05 10:23 PM
This test works against the latest JPOX snapshot.

Michael Bouschen added a comment - 19/Oct/05 12:16 AM
I looked at the patch. I just have one question: would it make sense to call putUserObject a second time for the same key and verify that the second call overwrite the existing value for the key?

Craig Russell added a comment - 19/Oct/05 02:45 AM
I added a test to verify that a second putUserObject overwrites the first value and returns it.

Committed version 326179.

Michael Bouschen added a comment - 23/Apr/06 03:08 AM
Reopened to set the Fix Version/s field to JDO 2 beta.