db-derby-commits mailing list archives

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



Mime
View raw message