geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jboy...@apache.org
Subject svn commit: rev 56997 - geronimo/trunk/modules/timer/src/test/org/apache/geronimo/timer/jdbc
Date Tue, 09 Nov 2004 04:13:49 GMT
Author: jboynes
Date: Mon Nov  8 20:13:49 2004
New Revision: 56997

Modified:
   geronimo/trunk/modules/timer/src/test/org/apache/geronimo/timer/jdbc/JDBCWorkerPersistenceTest.java
Log:
make sure db is shutdown between tests

Modified: geronimo/trunk/modules/timer/src/test/org/apache/geronimo/timer/jdbc/JDBCWorkerPersistenceTest.java
==============================================================================
--- geronimo/trunk/modules/timer/src/test/org/apache/geronimo/timer/jdbc/JDBCWorkerPersistenceTest.java
(original)
+++ geronimo/trunk/modules/timer/src/test/org/apache/geronimo/timer/jdbc/JDBCWorkerPersistenceTest.java
Mon Nov  8 20:13:49 2004
@@ -20,6 +20,7 @@
 import java.sql.Connection;
 import java.sql.PreparedStatement;
 import java.sql.ResultSet;
+import java.sql.Statement;
 import java.util.Date;
 import java.util.Collection;
 
@@ -66,6 +67,11 @@
 
     protected void tearDown() throws Exception {
         jdbcWorkerPersistence.doStop();
+        Connection c = datasource.getConnection();
+        Statement s = c.createStatement();
+        s.execute("SHUTDOWN");
+        s.close();
+        c.close();
     }
 
     public void testSaveCancel() throws Exception {

Mime
View raw message