Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 9131 invoked from network); 18 Aug 2006 03:55:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Aug 2006 03:55:25 -0000 Received: (qmail 62656 invoked by uid 500); 18 Aug 2006 03:55:25 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 62628 invoked by uid 500); 18 Aug 2006 03:55:25 -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 62617 invoked by uid 99); 18 Aug 2006 03:55:25 -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 20:55:25 -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 20:55:24 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id A47251A981A; Thu, 17 Aug 2006 20:55:04 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r432481 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/ScriptTestCase.java Date: Fri, 18 Aug 2006 03:55:04 -0000 To: derby-commits@db.apache.org From: djd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060818035504.A47251A981A@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 20:55:02 2006 New Revision: 432481 URL: http://svn.apache.org/viewvc?rev=432481&view=rev Log: Have ScriptTestCase use the connection provided by BaseJDBCTestCase. Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/ScriptTestCase.java Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/ScriptTestCase.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/ScriptTestCase.java?rev=432481&r1=432480&r2=432481&view=diff ============================================================================== --- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/ScriptTestCase.java (original) +++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/ScriptTestCase.java Thu Aug 17 20:55:02 2006 @@ -40,11 +40,6 @@ private final String inputEncoding; private final String outputEncoding = "US-ASCII"; - - /** - * Default connection. - */ - private Connection conn; /** * Create a ScriptTestCase to run a single test @@ -118,7 +113,7 @@ PrintStream printOut = new PrintStream(rawBytes); - conn = getConnection(); + Connection conn = getXConnection(); org.apache.derby.tools.ij.runScript( conn, sqlIn, @@ -183,14 +178,5 @@ outFile.close(); throw t; } - } - - /** - * Clean up the connection on teardown. - */ - protected void tearDown() throws Exception - { - JDBC.cleanup(conn); - super.tearDown(); } }