db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r985182 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMappingTest.java
Date Fri, 13 Aug 2010 12:53:16 GMT
Author: rhillegas
Date: Fri Aug 13 12:53:16 2010
New Revision: 985182

URL: http://svn.apache.org/viewvc?rev=985182&view=rev
Log:
DERBY-4066: Add asserts to test cases.

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

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMappingTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMappingTest.java?rev=985182&r1=985181&r2=985182&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMappingTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMappingTest.java
Fri Aug 13 12:53:16 2010
@@ -742,6 +742,8 @@ public class ParameterMappingTest extend
 
         println( "Left clob has " + leftLength + " characters and right clob has " + rightLength
+ " characters." );
 
+        assertEquals( leftLength, rightLength );
+
         if ( leftLength == rightLength );
         {
             String leftString = left.getSubString( 1L, (int) leftLength );
@@ -759,6 +761,8 @@ public class ParameterMappingTest extend
                     println( "left[ " + leftIdx+ " ] = " + leftC + " but right[ " + rightIdx
+ " ] = " + rightC );
                     return;
                 }
+
+                assertEquals( leftC, rightC );
             }
         }
 
@@ -876,6 +880,8 @@ public class ParameterMappingTest extend
 
         println( "Left blob has " + leftLength + " bytes and right blob has " + rightLength
+ " bytes." );
 
+        assertEquals( leftLength, rightLength );
+
         if ( leftLength == rightLength );
         {
             byte[] leftBytes = left.getBytes( 1L, (int) leftLength );
@@ -893,6 +899,8 @@ public class ParameterMappingTest extend
                     println( "left[ " + leftIdx+ " ] = " + leftC + " but right[ " + rightIdx
+ " ] = " + rightC );
                     return;
                 }
+
+                assertEquals( leftC, rightC );
             }
         }
     }



Mime
View raw message