db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r662386 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/StatementPoolingTest.java
Date Mon, 02 Jun 2008 10:28:34 GMT
Author: kristwaa
Date: Mon Jun  2 03:28:34 2008
New Revision: 662386

URL: http://svn.apache.org/viewvc?rev=662386&view=rev
Log:
DERBY-3431: Simplified auxiliary method by using a JUnit assert method.
Patch file: derby-3431-4a-spt_test_nit.diff

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

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/StatementPoolingTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/StatementPoolingTest.java?rev=662386&r1=662385&r2=662386&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/StatementPoolingTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/StatementPoolingTest.java
Mon Jun  2 03:28:34 2008
@@ -142,10 +142,7 @@
         if (JDBC.vmSupportsJDBC4() && !expectedName.endsWith("40")) {
             expectedName += "40";
         }
-        if (!simpleName.equals(expectedName)) {
-            fail("Expected class name " + expectedName + ", got " +
-                    simpleName);
-        }
+        assertEquals(expectedName, simpleName);
     }
 
     /**



Mime
View raw message