db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r588312 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/AuthenticationTest.java
Date Thu, 25 Oct 2007 19:01:25 GMT
Author: djd
Date: Thu Oct 25 12:01:24 2007
New Revision: 588312

URL: http://svn.apache.org/viewvc?rev=588312&view=rev
Log:
Add testing of DatabaseMetaData.getUserName() with various user names to AuthenticationTest.

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

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/AuthenticationTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/AuthenticationTest.java?rev=588312&r1=588311&r2=588312&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/AuthenticationTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/AuthenticationTest.java
Thu Oct 25 12:01:24 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