You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by dj...@apache.org on 2006/08/18 05:55:04 UTC

svn commit: r432481 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/ScriptTestCase.java

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();
 	}
 }