You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by se...@apache.org on 2010/09/22 16:44:54 UTC

svn commit: r999993 - /jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java

Author: sebb
Date: Wed Sep 22 14:44:54 2010
New Revision: 999993

URL: http://svn.apache.org/viewvc?rev=999993&view=rev
Log:
Don't rely on default charset

Modified:
    jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java

Modified: jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java?rev=999993&r1=999992&r2=999993&view=diff
==============================================================================
--- jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java (original)
+++ jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java Wed Sep 22 14:44:54 2010
@@ -820,9 +820,9 @@ public class PostWriterTest extends Test
             else {
                 for(int i = 0; i < expected.length; i++) {
                     if(expected[i] != actual[i]) {
-                        System.out.println(new String(expected,0,i+1));
+                        System.out.println(new String(expected,0,i+1, UTF_8));
                         System.out.println("--------------------");
-                        System.out.println(new String(actual,0,i+1));
+                        System.out.println(new String(actual,0,i+1, UTF_8));
                         System.out.println("====================");
                         fail("byte at position " + i + " is different, expected is " + expected[i] + ", actual is " + actual[i]);
                     }



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org