commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1092107 - /commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestString.java
Date Thu, 14 Apr 2011 10:34:47 GMT
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));
     }
 



Mime
View raw message