db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1096361 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionTest.java
Date Sun, 24 Apr 2011 19:25:29 GMT
Author: mamta
Date: Sun Apr 24 19:25:29 2011
New Revision: 1096361

URL: http://svn.apache.org/viewvc?rev=1096361&view=rev
Log:
Adding a simple test case to show that if you pass in an empty Map to setTypeMap, the method
does nothing because the Map is empty. 


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionTest.java?rev=1096361&r1=1096360&r2=1096361&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionTest.java
Sun Apr 24 19:25:29 2011
@@ -220,6 +220,11 @@ public class ConnectionTest
         } catch (UnsupportedOperationException uoe) {
             // Ignore expected exception
         }
+        
+        //Pass empty Map to setTypeMap(). It won't raise any erros because
+        //the method does nothing when the Map is empty.
+        java.util.Map<String,Class<?>> emptyMap = new java.util.HashMap<String,Class<?>>();
+        getConnection().setTypeMap(emptyMap);
 
         // Create a non-empty map to test setTypeMap(). setTypeMap() raises
         // a feature not supported exception if the map isn't empty.



Mime
View raw message