Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 57730 invoked from network); 8 Jul 2005 18:20:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Jul 2005 18:20:07 -0000 Received: (qmail 86770 invoked by uid 500); 8 Jul 2005 18:19:53 -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 86699 invoked by uid 99); 8 Jul 2005 18:19:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2005 11:19:52 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [62.154.194.149] (HELO miraculix.spree.de) (62.154.194.149) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2005 11:19:50 -0700 Received: from [172.16.1.19] (rio.spree.de [172.16.1.19]) by miraculix.spree.de (8.11.6/8.11.6) with ESMTP id j68IJlQ25811 for ; Fri, 8 Jul 2005 20:19:47 +0200 Message-ID: <42CEC3C0.3050602@spree.de> Date: Fri, 08 Jul 2005 20:19:44 +0200 From: Michael Watzek Organization: Tech@Spree GmbH User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jdo-dev@db.apache.org Subject: Re: 2nd patch for new test cases References: <42CC0684.7070809@spree.de> In-Reply-To: <42CC0684.7070809@spree.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 Hi, please do not checkin this patch for the following reasons: - It contains a bug wrt inheritance of pc classes. - It introduces dependencies to JNDI fscontext implementation which we do not want to have. - Craig already checked in a new version of JDOHelper containing the missing getPMF methods. I'll provide a new patch next week. Regards, Michael > Hi, > > the mails you'll receive in a minute will contain several patch files > which all belong together. I had to split up the single patch file > because it became too big. So, the next mails will have attached the > following files: > > 1) Schema.patch > 2) PCClasses-for-assertions-A7.patch > 3) Assertions-A7.patch > 4) Assertions-A8.patch > 5) Environment.patch > 6) JDOHelper.patch > > These patches contain test cases for assertions A7.12-38, A7.12-39, > A7.12-25, A8.6-13 - A8.6-20. In addition to the patch which I sent > yesterday, file "Assertions-A8.patch" contains test cases for assertions > A8.6-17 - A8.6-20. > > In order to make these work, I had to add getPMF methods to JDOHelper > having arguments of type "InputStream". That's why file JDOHelper.patch" > contains changes on "javax/jdo/JDOHelper.java" and > "java/javax/jdo/Bundle.properties". Feel free to change the > implementations of those methods. > > Furthermore, file "Assertions-A7.patch" fixes bugs in test cases for > assertions A8.6-13 - A8.6-16. > > Please note: You must apply all patches together (or none). Please apply > patches 1) - 5) in directory "tck20". Apply "JDOHelper.patch" in > directory "api20". > > Before you start a TCK run you need to add the fscontext JNDI > implementation to your maven repository. Please add a directory > "jndi/jars". There, you copy "fscontext.jar" and "providerutil.jar" and > rename these to "fscontext-SNAPSHOT.jar" and "providerutil-SNAPSHOT.jar". > > The fscontext JNDI implementation needs to be in the classpath because > the test cases for assertions A8.6-19, A8.6-20 (GetPMFByJNDILocation, > GetPMFByJNDILocationAndClassLoader) use the JNDI context of that > implementation. > > Some comments to these test cases: > > The positive test case constructs a PMF instance by File and binds this > instance to the JNDI context. Afterwards it calls > "JDOHelper.getPersistenceManagerFactory" and passes the JNDI context. > Finally, it unbinds the PMF instance. > > The negative test case does not construct a PMF instance. Instead, it > passes an empty JNDI context to "JDOHelper.getPersistenceManagerFactory". > > A TCK run including these patches has the following outcome: > > Application identity: > Tests run: 394, Failures: 10, Errors: 93, Time: 245,657 seconds. > > Datastore indentity: > Tests run: 394, Failures: 10, Errors: 88, Time: 192,875 seconds. > > Regards, > Michael -- ------------------------------------------------------------------- Michael Watzek Tech@Spree Engineering GmbH mailto:mwa.tech@spree.de Buelowstr. 66 Tel.: ++49/30/235 520 36 10783 Berlin - Germany Fax.: ++49/30/217 520 12 http://www.spree.de/ -------------------------------------------------------------------