db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r1143768 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/UpdateLocksTest.java
Date Thu, 07 Jul 2011 11:34:40 GMT
Author: kristwaa
Date: Thu Jul  7 11:34:39 2011
New Revision: 1143768

URL: http://svn.apache.org/viewvc?rev=1143768&view=rev
Log:
DERBY-5305: Convert store/updatelocks.sql to JUnit

Trivial cleanup: removed two unused imports and one unused variable.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/UpdateLocksTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/UpdateLocksTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/UpdateLocksTest.java?rev=1143768&r1=1143767&r2=1143768&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/UpdateLocksTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/UpdateLocksTest.java
Thu Jul  7 11:34:39 2011
@@ -19,7 +19,6 @@
  */
 package org.apache.derbyTesting.functionTests.tests.store;
 
-import java.sql.CallableStatement;
 import java.sql.Connection;
 import java.sql.PreparedStatement;
 import java.sql.ResultSet;
@@ -32,7 +31,6 @@ import java.util.Arrays;
 
 import junit.framework.Test;
 
-import org.apache.derbyTesting.functionTests.util.Formatters;
 import org.apache.derbyTesting.junit.BaseJDBCTestCase;
 import org.apache.derbyTesting.junit.CleanDatabaseTestSetup;
 import org.apache.derbyTesting.junit.JDBC;
@@ -92,8 +90,6 @@ public class UpdateLocksTest extends Bas
              * Creates the views and procedures used by the test cases.
              */
             protected void decorateSQL(Statement s) throws SQLException {
-                Connection conn = s.getConnection();
-
                 s.executeUpdate(
                     "create function PADSTRING (data varchar(32000), " +
                     "                           length integer) " +



Mime
View raw message