Issue Details (XML | Word | Printable)

Key: JDO-188
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 static JDOHelper.getObjectIds methods

Created: 19/Oct/05 06:42 AM   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-188.patch 2005-10-31 02:08 PM Craig Russell 9 kB
Text File Licensed for inclusion in ASF works jdo-188.patch 2005-10-29 11:55 PM Craig Russell 8 kB
Environment: TCK

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


 Description  « Hide
A8.3-11 [static Object[] getObjectIds (Object[] pcs); static Collection getObjectIds (Collection pcs); These methods return the JDO identities of the parameter instances. For each instance in the parameter, the getObjectId method is called. They return one identity instance for each persistence-capable instance in the parameter. The order of iteration of the returned Collection exactly matches the order of iteration of the parameter Collection].

The test case api.persistencemanager.GetObjectIds needs a test method per API.

The setUp method creates 50 persistent instances of type PCPoint and stores the ids in an ArrayList and the instances in a separate ArrayList. The test case call getObjectIds and verify that the object ids returned match the objects ids that are in the list.

There are no negative tests.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.