Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 20155 invoked from network); 27 Oct 2005 08:04:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Oct 2005 08:04:23 -0000 Received: (qmail 46091 invoked by uid 500); 27 Oct 2005 08:04:20 -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 46079 invoked by uid 99); 27 Oct 2005 08:04:19 -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; Thu, 27 Oct 2005 01:04:18 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id B255A21F for ; Thu, 27 Oct 2005 10:03:57 +0200 (CEST) Message-ID: <1147570116.1130400237728.JavaMail.jira@ajax.apache.org> Date: Thu, 27 Oct 2005 10:03:57 +0200 (CEST) From: "Craig Russell (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Commented: (JDO-188) Add tests for static JDOHelper.getObjectIds methods In-Reply-To: <1875218827.1129671824956.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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-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