db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r1332165 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ProtocolTest.java
Date Mon, 30 Apr 2012 11:47:10 GMT
Author: kristwaa
Date: Mon Apr 30 11:47:09 2012
New Revision: 1332165

URL: http://svn.apache.org/viewvc?rev=1332165&view=rev
Log:
DERBY-5732: ProtocolTest doesn't clean up its test resources

Added tearDown-method that closes and nullifies test resources.

Patch file: derby-5732-1a-add_teardown.diff

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ProtocolTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ProtocolTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ProtocolTest.java?rev=1332165&r1=1332164&r2=1332165&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ProtocolTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ProtocolTest.java
Mon Apr 30 11:47:09 2012
@@ -156,6 +156,15 @@ public class ProtocolTest
         }
     }
 
+    /** Cleans up test resources. */
+    public void tearDown()
+            throws Exception {
+        commandSequence = null;
+        adapter.close();
+        adapter = null;
+        super.tearDown();
+    }
+
     /**
      * Initializes a socket to the server.
      *



Mime
View raw message