db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r594118 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DRDAProtocolTest.java
Date Mon, 12 Nov 2007 13:37:22 GMT
Author: kristwaa
Date: Mon Nov 12 05:37:22 2007
New Revision: 594118

URL: http://svn.apache.org/viewvc?rev=594118&view=rev
Log:
DERBY-3199: Minor cleanup of DRDAProtocolTest.
Patch file: derby-3199-1a-minor_cleanup.diff

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

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DRDAProtocolTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DRDAProtocolTest.java?rev=594118&r1=594117&r2=594118&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DRDAProtocolTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DRDAProtocolTest.java
Mon Nov 12 05:37:22 2007
@@ -24,26 +24,26 @@
 import java.sql.Connection;
 import java.sql.PreparedStatement;
 import java.sql.ResultSet;
+import java.sql.SQLException;
 import java.sql.Statement;
-import javax.sql.DataSource;
 
-import junit.extensions.TestSetup;
 import junit.framework.Test;
-import junit.framework.TestSuite;
 
-import org.apache.derbyTesting.junit.JDBCDataSource;
 import org.apache.derbyTesting.junit.BaseJDBCTestCase;
-import org.apache.derbyTesting.junit.BaseJDBCTestSetup;
 import org.apache.derbyTesting.junit.TestConfiguration;
-import org.apache.derbyTesting.junit.SupportFilesSetup;
 
-/** The test of the properties of the DRDA network protocol implementation.
-  */
+/**
+ * Tests of the properties of the DRDA network protocol implementation.
+ */
 public class DRDAProtocolTest extends BaseJDBCTestCase {
     
-    /** Test whether the multiple connections to different databases
-      * on a same derby instance are working without exceptions. */
-    public void testMultipleConnections() throws Exception {
+    /** 
+     * Tests whether multiple connections to different databases
+     * on the same Derby instance are working without exceptions.
+     * 
+     * @throws SQLException if database interaction fails
+     */
+    public void testMultipleConnections() throws SQLException {
         Connection conn1 = openConnection("FIRSTDB1");
         conn1.setAutoCommit(false);
 
@@ -87,5 +87,4 @@
         test = TestConfiguration.additionalDatabaseDecorator(test, "SECONDDB2");
         return test;
     }
-    
 }



Mime
View raw message