db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1149482 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsTest.java
Date Fri, 22 Jul 2011 07:02:55 GMT
Author: kahatlen
Date: Fri Jul 22 07:02:54 2011
New Revision: 1149482

URL: http://svn.apache.org/viewvc?rev=1149482&view=rev
Log:
DERBY-1903: Convert largedata/LobLimits.java to junit

Make sure the stream opened by compareBlobToFile() is closed.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsTest.java?rev=1149482&r1=1149481&r2=1149482&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsTest.java
Fri Jul 22 07:02:54 2011
@@ -817,14 +817,7 @@ public class LobLimitsTest extends BaseJ
         FileInputStream file =
                 PrivilegedFileOpsForTests
                         .getFileInputStream(new File(filename));
-        int l = 0;
-        int b = 0;
-        do {
-            l = lobstream.read();
-            b = file.read();
-            assertEquals("FAIL -- MISMATCH in data stored (" + l + ") versus" +
-                    "data retrieved from file(" + b + "). ", b, l);
-        } while (l != -1 && b != -1);
+        assertEquals(file, lobstream);
     }
 
     private void deleteTable(String table,



Mime
View raw message