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 2006/03/21 00:21:02 UTC

[jira] Resolved: (JDO-141) Add getObjectsById tests

     [ http://issues.apache.org/jira/browse/JDO-141?page=all ]
     
Craig Russell resolved JDO-141:
-------------------------------

    Resolution: Fixed

svn commit -m "JDO-141 Added getObjectsById tests" src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectsById.java src/conf/pm.conf 
Sending        src/conf/pm.conf
Adding         src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectsById.java
Transmitting file data ..
Committed revision 387340.


> Add getObjectsById tests
> ------------------------
>
>          Key: JDO-141
>          URL: http://issues.apache.org/jira/browse/JDO-141
>      Project: JDO
>         Type: Test
>   Components: tck20
>     Versions: JDO 2 beta
>  Environment: TCK
>     Reporter: Craig Russell
>     Assignee: Craig Russell
>      Fix For: JDO 2 final

>
> 12.5.6-17 [Collection getObjectsById (Collection oids); Object[] getObjectsById (Object[] oids); Collection getObjectsById (Collection oids, boolean validate); Object[] getObjectsById (Object[] oids, boolean validate); The getObjectsById method attempts to find instances in the cache with the specified JDO identities. The elements of the oids parameter object might have been returned by earlier calls to getObjectId or getTransactionalObjectId, or might have been constructed by the application. If a method with no validate parameter is used, the method behaves exactly as the correspond ing method with the validate flag set to true. If the Object[] form of the method is used, the returned objects correspond by position with the object ids in the oids parameter. If the Collection form of the method is used, the iterator over the returned Collection returns instances in the same order as the oids returned by an iterator over the parameter Collection. The cardinality of the return value is the same as the cardinality of the oids parameter. ]
> The test case api.persistencemanager.GetObjectsById needs a test method per API per validate parameter, or six altogether. testCollection, testArray, testCollectionValidateTrue, testCollectionValidateFalse, testArrayValidateTrue, testArrayValidateFalse.
> 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 cases getObjectsById and verify that the objects returned match the objects that are in the object 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