harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r793615 - /harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/FileChannelTest.java
Date Mon, 13 Jul 2009 16:06:06 GMT
Author: odeakin
Date: Mon Jul 13 16:06:06 2009
New Revision: 793615

URL: http://svn.apache.org/viewvc?rev=793615&view=rev
Log:
Match encoding used in the rest of the test.

Modified:
    harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/FileChannelTest.java

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/FileChannelTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/FileChannelTest.java?rev=793615&r1=793614&r2=793615&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/FileChannelTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/FileChannelTest.java
Mon Jul 13 16:06:06 2009
@@ -2123,7 +2123,7 @@
         byte[] inputBuffer = new byte[CONTENT_AS_BYTES_LENGTH - pos];
         fis.read(inputBuffer);
         String test = CONTENT.substring(pos);        
-        assertTrue(Arrays.equals(test.getBytes(), inputBuffer));
+        assertTrue(Arrays.equals(test.getBytes("iso8859-1"), inputBuffer));
     }
 
     /**



Mime
View raw message