db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r596753 - /db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/AuthenticationTest.java
Date Tue, 20 Nov 2007 17:53:47 GMT
Author: djd
Date: Tue Nov 20 09:53:45 2007
New Revision: 596753

URL: http://svn.apache.org/viewvc?rev=596753&view=rev
Log:
Merge 588312 from trunk which just adds some tests to AuthenticationTest. Eases later merges

Modified:
    db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/AuthenticationTest.java

Modified: db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/AuthenticationTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/AuthenticationTest.java?rev=596753&r1=596752&r2=596753&view=diff
==============================================================================
--- db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/AuthenticationTest.java
(original)
+++ db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/AuthenticationTest.java
Tue Nov 20 09:53:45 2007
@@ -241,6 +241,11 @@
     {
         assertNormalUserName(normalUserName, connUser);
         
+        // DatabaseMetaData.getUserName() returns the user name used
+        // to make the request via JDBC.
+        assertEquals("DatabaseMetaData.getUserName()",
+                jdbcUserName, connUser.getMetaData().getUserName());
+        
         JDBC.cleanup(connUser);
     }
     
@@ -253,10 +258,7 @@
      */
     private void assertNormalUserName(String normalUserName, Connection connUser)
         throws SQLException
-    {
-        //assertEquals("DatabaseMetaData.getUserName",
-        //        normalUserName, connUser.getMetaData().getUserName());
-        
+    {      
         Statement s = connUser.createStatement();
         
         JDBC.assertSingleValueResultSet(s.executeQuery("VALUES CURRENT_USER"),



Mime
View raw message