Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 94467 invoked from network); 3 Feb 2006 19:27:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Feb 2006 19:27:32 -0000 Received: (qmail 54045 invoked by uid 500); 3 Feb 2006 19:27:31 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 53931 invoked by uid 99); 3 Feb 2006 19:27:30 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2006 11:27:30 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 641C9185 for ; Fri, 3 Feb 2006 20:27:09 +0100 (CET) Message-ID: <446145636.1138994829395.JavaMail.jira@ajax.apache.org> Date: Fri, 3 Feb 2006 20:27:09 +0100 (CET) From: "Craig Russell (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Updated: (JDO-141) Add getObjectsById tests In-Reply-To: <1392719472.1127262568050.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JDO-141?page=3Dall ] Craig Russell updated JDO-141: ------------------------------ Fix Version: JDO 2 rc1 Version: JDO 2 beta > 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 > Fix For: JDO 2 rc1 > > 12.5.6-17 [Collection getObjectsById (Collection oids); Object[] getObjec= tsById (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 spec= ified 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 vali= date parameter is used, the method behaves exactly as the correspond ing me= thod 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 i= n the oids parameter. If the Collection form of the method is used, the ite= rator over the returned Collection returns instances in the same order as t= he oids returned by an iterator over the parameter Collection. The cardinal= ity of the return value is the same as the cardinality of the oids paramete= r. ] > The test case api.persistencemanager.GetObjectsById needs a test method p= er API per validate parameter, or six altogether. testCollection, testArray= , testCollectionValidateTrue, testCollectionValidateFalse, testArrayValidat= eTrue, testArrayValidateFalse. > The setUp method creates 50 persistent instances of type PCPoint and stor= es the ids in an ArrayList and the instances in a separate ArrayList. The t= est cases getObjectsById and verify that the objects returned match the obj= ects that are in the object list. > There are no negative tests. --=20 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