Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 86231 invoked from network); 20 Mar 2006 10:13:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Mar 2006 10:13:27 -0000 Received: (qmail 98194 invoked by uid 500); 20 Mar 2006 10:13:25 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 98153 invoked by uid 500); 20 Mar 2006 10:13:25 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 98144 invoked by uid 99); 20 Mar 2006 10:13:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Mar 2006 02:13:25 -0800 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; Mon, 20 Mar 2006 02:13:24 -0800 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 7023C6ACA9 for ; Mon, 20 Mar 2006 10:13:03 +0000 (GMT) Message-ID: <1010660611.1142849583453.JavaMail.jira@ajax> Date: Mon, 20 Mar 2006 10:13:03 +0000 (GMT) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1097) Add tests for Statement.isClosed() In-Reply-To: <2085899103.1142009858952.JavaMail.jira@ajax> 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/DERBY-1097?page=all ] Kristian Waagan updated DERBY-1097: ----------------------------------- Attachment: DERBY-1097-2a.stat DERBY-1097-2a.diff Answering David's comments of 18th of March, and uploading 'DERBY-1097-2a.diff' (patch deprecates previous patches). Committing sound test code that is known to fail beacause of another bug in Derby must be allowed in my opinion, as long as they are not included in any suites and will be fixed shortly. Also, in this case, the fact that the test code works for embedded is an indication (but not a guarantee) that the test code is sound - the same code is run for DerbyNetClient. The error happens in the one-time setup code in StatementTestSetup.setUp(), but it is now gone because the bug is already fixed. Finally, I have not submitted a patch for enabling the test, thus it would not cause problems for anyone. I have removed the exclamation marks in the assertion messages. I don't understand this comment: "It's a little odd to me that you run an embedded test under the DerbyNetClient framework." Did you look at the old/initial submission, or have I forgotten to remove some comments? I agree that what the jdbc4 suite does is odd, but that is not my code. I initially wrote StatementTest so that it could be added to the jdbc4 suite, but was convinced this was not the best idea because of how it is run. StatementTest itself can be run under embedded or DerbyNetClient. It doesn't run under DerbyNet (JCC), because the driver does not support JDBC4. A new suite will be created, but I'm not sure what is the best solution yet, so I would like some comments on it. Should I create a new JDBC4 suite, say 'jdbc40', then add this to derbyall and derbynetclientmats? All JVMs except JDK 1.6 will be excluded and so will running under DerbyNet be. > Add tests for Statement.isClosed() > ---------------------------------- > > Key: DERBY-1097 > URL: http://issues.apache.org/jira/browse/DERBY-1097 > Project: Derby > Type: Sub-task > Components: Test > Versions: 10.2.0.0 > Environment: JDBC4 / JDK 1.6 > Reporter: Kristian Waagan > Assignee: Kristian Waagan > Attachments: DERBY-1097-2a.diff, DERBY-1097-2a.stat, StatementTest.java, StatementTest.java-v1, StatementTestSetup.java, StatementTestSetup.java-v1 > > Add tests for Statement.isClosed() (implemented as part of DERBY-953). > The tests are already written, but because of some "confusion" and diverging paths regarding how to get connections when running JUnit tests, they are held back. -- 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