Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 11369 invoked from network); 18 Aug 2006 04:02:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Aug 2006 04:02:36 -0000 Received: (qmail 68440 invoked by uid 500); 18 Aug 2006 04:02:36 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 68411 invoked by uid 500); 18 Aug 2006 04:02:36 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 68388 invoked by uid 99); 18 Aug 2006 04:02:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Aug 2006 21:02:36 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Aug 2006 21:02:35 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id B98821A981A; Thu, 17 Aug 2006 21:02:15 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r432484 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ShutDownDBWhenNSShutsDownTest.java Date: Fri, 18 Aug 2006 04:02:15 -0000 To: derby-commits@db.apache.org From: djd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060818040215.B98821A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: djd Date: Thu Aug 17 21:02:13 2006 New Revision: 432484 URL: http://svn.apache.org/viewvc?rev=432484&view=rev Log: Change ShutDownDBWhenNSShutsDownTest.java to use the connection provided by BaseJDBCTestCase. Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ShutDownDBWhenNSShutsDownTest.java Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ShutDownDBWhenNSShutsDownTest.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ShutDownDBWhenNSShutsDownTest.java?rev=432484&r1=432483&r2=432484&view=diff ============================================================================== --- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ShutDownDBWhenNSShutsDownTest.java (original) +++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ShutDownDBWhenNSShutsDownTest.java Thu Aug 17 21:02:13 2006 @@ -40,7 +40,7 @@ * started from the command line and that it will not shut down the databases * when started from the API. */ -public class ShutDownDBWhenNSShutsDownTest extends BaseTestCase { +public class ShutDownDBWhenNSShutsDownTest extends BaseJDBCTestCase { NetworkServerControl server = null; @@ -144,13 +144,14 @@ } private void createDatabase() throws SQLException { - Connection conn = BaseJDBCTestCase.getConnection(); + Connection conn = getXConnection(); conn.setAutoCommit(false); Statement st = conn.createStatement(); st.execute("CREATE TABLE T1 (a int)"); st.execute("INSERT INTO T1 VALUES (1), (2), (3), (4), (5)"); st.execute("DROP TABLE T1"); conn.commit(); + conn.close(); } private void shutdownServer() throws Exception {