db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r579853 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DataSourceTest.java
Date Thu, 27 Sep 2007 00:01:42 GMT
Author: myrnavl
Date: Wed Sep 26 17:01:41 2007
New Revision: 579853

URL: http://svn.apache.org/viewvc?rev=579853&view=rev
Log:
DERBY-3082 - (afterthought) in case there ever really is a mismatch, would be nice to get
the output and expected format printed out with the assert.

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

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DataSourceTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DataSourceTest.java?rev=579853&r1=579852&r2=579853&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DataSourceTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DataSourceTest.java
Wed Sep 26 17:01:41 2007
@@ -2911,7 +2911,8 @@
     {
         assertStringPrefix(conn);
         String str = conn.toString(); 
-        assertTrue(str.matches(CONNSTRING_FORMAT));
+        assertTrue("\nexpected format:\n " + CONNSTRING_FORMAT + "\nactual value:\n " + str,
+            str.matches(CONNSTRING_FORMAT));
     }
 
     /**



Mime
View raw message