You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Craig Russell (JIRA)" <ji...@apache.org> on 2005/10/18 23:43:44 UTC
[jira] Created: (JDO-188) Add tests for static JDOHelper.getObjectIds methods
Add tests for static JDOHelper.getObjectIds methods
---------------------------------------------------
Key: JDO-188
URL: http://issues.apache.org/jira/browse/JDO-188
Project: JDO
Type: Test
Components: tck20
Environment: TCK
Reporter: Craig Russell
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.
--
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
[jira] Reopened: (JDO-188) Add tests for static
JDOHelper.getObjectIds methods
Posted by "Michael Bouschen (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JDO-188?page=all ]
Michael Bouschen reopened JDO-188:
----------------------------------
> Add tests for static JDOHelper.getObjectIds methods
> ---------------------------------------------------
>
> Key: JDO-188
> URL: http://issues.apache.org/jira/browse/JDO-188
> Project: JDO
> Type: Test
> Components: tck20
> Environment: TCK
> Reporter: Craig Russell
> Assignee: Craig Russell
> Attachments: jdo-188.patch, jdo-188.patch
>
> 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.
--
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
[jira] Closed: (JDO-188) Add tests for static JDOHelper.getObjectIds methods
Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JDO-188?page=all ]
Craig Russell closed JDO-188:
-----------------------------
Resolution: Fixed
Added tests for JDOHelper.getObjectIds
Committed revision 329926, accidentally including patch for instancecallbacks teardown.
Committed revision 329927.
> Add tests for static JDOHelper.getObjectIds methods
> ---------------------------------------------------
>
> Key: JDO-188
> URL: http://issues.apache.org/jira/browse/JDO-188
> Project: JDO
> Type: Test
> Components: tck20
> Environment: TCK
> Reporter: Craig Russell
> Assignee: Craig Russell
> Attachments: jdo-188.patch, jdo-188.patch
>
> 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.
--
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
[jira] Assigned: (JDO-188) Add tests for static JDOHelper.getObjectIds methods
Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JDO-188?page=all ]
Craig Russell reassigned JDO-188:
---------------------------------
Assign To: Craig Russell
> Add tests for static JDOHelper.getObjectIds methods
> ---------------------------------------------------
>
> Key: JDO-188
> URL: http://issues.apache.org/jira/browse/JDO-188
> Project: JDO
> Type: Test
> Components: tck20
> Environment: TCK
> Reporter: Craig Russell
> Assignee: Craig Russell
> Attachments: jdo-188.patch
>
> 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.
--
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
[jira] Updated: (JDO-188) Add tests for static JDOHelper.getObjectIds methods
Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JDO-188?page=all ]
Craig Russell updated JDO-188:
------------------------------
Attachment: jdo-188.patch
This patch includes comments from Michael (thanks, I missed the cleanup of the second PM), an update to the alltests.conf, and a slightly different implementation of JDOHelper.getObjectIds(Object[ ]).
I plan to check it in tomorrow.
> Add tests for static JDOHelper.getObjectIds methods
> ---------------------------------------------------
>
> Key: JDO-188
> URL: http://issues.apache.org/jira/browse/JDO-188
> Project: JDO
> Type: Test
> Components: tck20
> Environment: TCK
> Reporter: Craig Russell
> Assignee: Craig Russell
> Attachments: jdo-188.patch, jdo-188.patch
>
> 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.
--
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
[jira] Closed: (JDO-188) Add tests for static
JDOHelper.getObjectIds methods
Posted by "Michael Bouschen (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JDO-188?page=all ]
Michael Bouschen closed JDO-188:
--------------------------------
Fix Version: JDO 2 beta
Resolution: Fixed
> Add tests for static JDOHelper.getObjectIds methods
> ---------------------------------------------------
>
> Key: JDO-188
> URL: http://issues.apache.org/jira/browse/JDO-188
> Project: JDO
> Type: Test
> Components: tck20
> Environment: TCK
> Reporter: Craig Russell
> Assignee: Craig Russell
> Fix For: JDO 2 beta
> Attachments: jdo-188.patch, jdo-188.patch
>
> 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.
--
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
[jira] Commented: (JDO-188) Add tests for static JDOHelper.getObjectIds methods
Posted by "Michael Bouschen (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JDO-188?page=comments#action_12356278 ]
Michael Bouschen commented on JDO-188:
--------------------------------------
The patch looks good.
Just one remark: the localSetUp method creates a second PM which is not closed in the test case. Should we add a localTearDown method coling this PM?
> Add tests for static JDOHelper.getObjectIds methods
> ---------------------------------------------------
>
> Key: JDO-188
> URL: http://issues.apache.org/jira/browse/JDO-188
> Project: JDO
> Type: Test
> Components: tck20
> Environment: TCK
> Reporter: Craig Russell
> Assignee: Craig Russell
> Attachments: jdo-188.patch
>
> 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.
--
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
[jira] Commented: (JDO-188) Add tests for static JDOHelper.getObjectIds methods
Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JDO-188?page=comments#action_12356054 ]
Craig Russell commented on JDO-188:
-----------------------------------
You are right.
The new methods are indeed in JDOHelper not in PersistenceManager. So the test needs to be written for the JDOHelper class.
I'd propose the new test case api.jdohelper.GetObjectIds with test methods testGetObjectIdsCollection and testGetObjectIdsArray. The collection of parameter objects should include null, transient instances, and persistent instances from multiple persistence managers.
The JDOHelper checked into the repository does not include the new methods, so as part of this work the methods need to be added.
> Add tests for static JDOHelper.getObjectIds methods
> ---------------------------------------------------
>
> Key: JDO-188
> URL: http://issues.apache.org/jira/browse/JDO-188
> Project: JDO
> Type: Test
> Components: tck20
> Environment: TCK
> Reporter: Craig Russell
>
> 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.
--
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
[jira] Commented: (JDO-188) Add tests for static JDOHelper.getObjectIds methods
Posted by "karan singh malhi (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JDO-188?page=comments#action_12332865 ]
karan singh malhi commented on JDO-188:
---------------------------------------
The test case api.persistencemanager.GetObjectIds needs a test method per API.
Should'nt the above be api.jdohelper.GetObjectIds
> Add tests for static JDOHelper.getObjectIds methods
> ---------------------------------------------------
>
> Key: JDO-188
> URL: http://issues.apache.org/jira/browse/JDO-188
> Project: JDO
> Type: Test
> Components: tck20
> Environment: TCK
> Reporter: Craig Russell
>
> 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.
--
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
[jira] Updated: (JDO-188) Add tests for static JDOHelper.getObjectIds methods
Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JDO-188?page=all ]
Craig Russell updated JDO-188:
------------------------------
Attachment: jdo-188.patch
Please review this patch for JDOHelper.java and GetObjectIds.java.
The patch has been tested against the latest JPOX build.
> Add tests for static JDOHelper.getObjectIds methods
> ---------------------------------------------------
>
> Key: JDO-188
> URL: http://issues.apache.org/jira/browse/JDO-188
> Project: JDO
> Type: Test
> Components: tck20
> Environment: TCK
> Reporter: Craig Russell
> Attachments: jdo-188.patch
>
> 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.
--
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