harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r650402 - /harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/CachedRowSetStreamTest.java
Date Tue, 22 Apr 2008 07:40:12 GMT
Author: tellison
Date: Tue Apr 22 00:40:10 2008
New Revision: 650402

URL: http://svn.apache.org/viewvc?rev=650402&view=rev
Log:
Apply patch HARMONY-5773 ([classlib][sql][rowset] - org.apache.harmony.sql.tests.internal.rowset.CachedRowSetStreamTest.testUpdateAsciiStream
failed)

Modified:
    harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/CachedRowSetStreamTest.java

Modified: harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/CachedRowSetStreamTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/CachedRowSetStreamTest.java?rev=650402&r1=650401&r2=650402&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/CachedRowSetStreamTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/CachedRowSetStreamTest.java
Tue Apr 22 00:40:10 2008
@@ -784,13 +784,13 @@
 
         obj = crset.getObject(2);
         assertTrue(obj instanceof String);
-        assertEquals(value, obj);
+        assertEquals(new String(value.getBytes()), obj);
 
-        chars = ((String) obj).toCharArray();
-        char[] expected = value.toCharArray();
-        assertEquals(expected.length, chars.length);
-        for (int i = 0; i < chars.length; i++) {
-            assertEquals(expected[i], chars[i]);
+        byte[] bytes = ((String) obj).getBytes();
+        byte[] expected = value.getBytes();
+        assertEquals(expected.length, bytes.length);
+        for (int i = 0; i < bytes.length; i++) {
+            assertEquals(expected[i], bytes[i]);
         }
 
         value = new String("\u548d\u8c1a");
@@ -799,13 +799,13 @@
 
         obj = crset.getObject(3);
         assertTrue(obj instanceof String);
-        assertEquals(value, obj);
+        assertEquals(new String(value.getBytes()), obj);
 
-        chars = ((String) obj).toCharArray();
-        expected = value.toCharArray();
-        assertEquals(expected.length, chars.length);
-        for (int i = 0; i < chars.length; i++) {
-            assertEquals(expected[i], chars[i]);
+        bytes = ((String) obj).getBytes();
+        expected = value.getBytes();
+        assertEquals(expected.length, bytes.length);
+        for (int i = 0; i < bytes.length; i++) {
+            assertEquals(expected[i], bytes[i]);
         }
     }
 
@@ -1192,7 +1192,8 @@
                 // FOR BIT DATA' from a data value of type
                 // 'java.io.InputStream(ASCII)'.
                 /*
-                 * TODO It seems RI invoke wrong method when it's setBinaryStream
+                 * TODO It seems RI invoke wrong method when it's
+                 * setBinaryStream
                  */
             }
         }



Mime
View raw message