db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
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 GMT
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();
 	}
 }



Mime
View raw message