Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 70220 invoked from network); 1 Dec 2005 16:26:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Dec 2005 16:26:02 -0000 Received: (qmail 31270 invoked by uid 500); 1 Dec 2005 16:25:56 -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 31259 invoked by uid 99); 1 Dec 2005 16:25:56 -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, 01 Dec 2005 08:25:54 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id DEB96CB for ; Thu, 1 Dec 2005 17:25:31 +0100 (CET) Message-ID: <1410625282.1133454331910.JavaMail.jira@ajax.apache.org> Date: Thu, 1 Dec 2005 17:25:31 +0100 (CET) From: "Michael Watzek (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Updated: (JDO-147) Remove pm.deletePersistent from query tests In-Reply-To: <143740100.1127406027981.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-147?page=all ] Michael Watzek updated JDO-147: ------------------------------- Attachment: JDO-147.patch The attached patch fixes this issue. Methods QueryTest.cleanupCompanyModel and QueryTest.cleanupDatabase have been removed. Instead, localSetup methods have been introduced in all JDO1 query tests. All JDO1 query tests (except jdoql.operator tests) have been adapted to make use of the query framework implemented for JDO2 query tests. Thus, JDO1 query tests cases are executed as API queries and as single string queries. Furthermore, this ensures that JDO1 and JDO2 use the same logging infrastructure. Additionally, methods QueryTest.getCompanyModelInstanceXXX have been removed. Instead, methods QueryTest.getPersistentCompanyModelInstanceXXX and QueryTest.getTransientCompanyModelInstanceXXX have been introduced. The expected result of queries is initialized using QueryTest.getTransientCompanyModelInstanceXXX. Parameters of queries are initialized using QueryTest.getPerisistentCompanyModelInstanceXXX. The same holds true for QueryTest.getMylibInstanceXXX methods. > Remove pm.deletePersistent from query tests > ------------------------------------------- > > Key: JDO-147 > URL: http://issues.apache.org/jira/browse/JDO-147 > Project: JDO > Type: Bug > Components: tck20 > Reporter: Michelle Caisse > Assignee: Michael Watzek > Attachments: JDO-147.patch > > The query tests delete the persistent instance that they create at the end of the test using pm.deletePersistent(). Now that we use the new cleanup mechanism (addTearDownClass(Class)), there is no reason to deletie the instance. Also, the new maven option jdo.tck.cleanupaftertest cannot override this cleanup, so you can never see the database contents for debugging. Therefore, we should remove the line that deletes the persistent instance. -- 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