db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r1212210 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/management/JDBCMBeanTest.java
Date Fri, 09 Dec 2011 01:23:13 GMT
Author: dag
Date: Fri Dec  9 01:23:13 2011
New Revision: 1212210

URL: http://svn.apache.org/viewvc?rev=1212210&view=rev
Log:
DERBY-5521 JDBCMBeanTest#testAttributeDriverLevel uses Java assert in lieu of JUnit assert:
no real testing happens

Patch derby-5521-followup fixes a small issue with the regexp (JDK
name varied over time: J2SE -> Java SE) used in the test.


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/management/JDBCMBeanTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/management/JDBCMBeanTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/management/JDBCMBeanTest.java?rev=1212210&r1=1212209&r2=1212210&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/management/JDBCMBeanTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/management/JDBCMBeanTest.java
Fri Dec  9 01:23:13 2011
@@ -111,11 +111,13 @@ public class JDBCMBeanTest extends MBean
         println("MBean driverLevel  = " + driverLevelString);
 
         assertEquals(
-            "Unexpected driver level string: " + driverLevelString,
+            "Unexpected driver level string: " + driverLevelString +
+            " JDBCVersion: " + JDBCVersion,
             -1, driverLevelString.indexOf('?'));
         assertTrue(
-            "Unexpected driver level string: " + driverLevelString,
-             driverLevelString.matches("^Java SE .*JDBC .*" + JDBCVersion));
+            "Unexpected driver level string: " + driverLevelString +
+            " JDBCVersion: " + JDBCVersion,
+             driverLevelString.matches("^J.*SE.* - JDBC .*" + JDBCVersion));
     }
     
     /**



Mime
View raw message