You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2011/04/14 12:34:47 UTC

svn commit: r1092107 - /commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestString.java

Author: mturk
Date: Thu Apr 14 10:34:46 2011
New Revision: 1092107

URL: http://svn.apache.org/viewvc?rev=1092107&view=rev
Log:
Do not use fixed numbers

Modified:
    commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestString.java

Modified: commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestString.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestString.java?rev=1092107&r1=1092106&r2=1092107&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestString.java (original)
+++ commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestString.java Thu Apr 14 10:34:46 2011
@@ -32,7 +32,7 @@ public class TestString
     public void getStrlenA()
         throws Exception
     {
-        String s = new String(gUIF, 0, 6, "UTF-8");
+        String s = new String(gUIF, 0, gUIF.length, "utf-8");
         Assert.assertEquals(6, test0(s));
     }
 
@@ -40,7 +40,7 @@ public class TestString
     public void getStrlenW()
         throws Exception
     {
-        String s = new String(gUIF, 0, 6, "UTF-8");
+        String s = new String(gUIF, 0, gUIF.length, "UtF-8");
         Assert.assertEquals(5, test1(s));
     }