harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r487547 - /harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialBlobTest.java
Date Fri, 15 Dec 2006 13:26:40 GMT
Author: ayza
Date: Fri Dec 15 05:26:36 2006
New Revision: 487547

URL: http://svn.apache.org/viewvc?view=rev&rev=487547
Log:
The patch from HARMONY-2725 ([classlib][sql] RI throws SerialException when both parameters
in SerialBlob.getBytes(long pos, int len) are valid.) was applied.

Modified:
    harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialBlobTest.java

Modified: harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialBlobTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialBlobTest.java?view=diff&rev=487547&r1=487546&r2=487547
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialBlobTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialBlobTest.java
Fri Dec 15 05:26:36 2006
@@ -103,6 +103,11 @@
         assertEquals(3, data[1]);
         assertEquals(4, data[2]);
 
+        // Harmony-2725 RI's bug : RI throws SerialException here.
+        data = serialBlob.getBytes(2, 1);
+        assertEquals(1, data.length);
+        assertEquals(2, data[0]);
+
         data = serialBlob.getBytes(1, 10);
         assertEquals(8, data.length);
         assertTrue(Arrays.equals(buf, data));
@@ -167,7 +172,7 @@
         pattern = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
         pos = blob.position(pattern, 1);
         assertEquals(1, pos);
-        
+
         pattern = new byte[] { 2, 3, 4 };
         pos = blob.position(pattern, 1);
         assertEquals(2, pos);
@@ -215,7 +220,7 @@
         pattern.buf = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
         pos = blob.position(pattern, 1);
         assertEquals(1, pos);
-        
+
         pattern.buf = new byte[] { 2, 3, 4 };
         pos = blob.position(pattern, 1);
         assertEquals(2, pos);



Mime
View raw message