Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 63929 invoked from network); 14 Apr 2011 10:35:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Apr 2011 10:35:10 -0000 Received: (qmail 16662 invoked by uid 500); 14 Apr 2011 10:35:10 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 16615 invoked by uid 500); 14 Apr 2011 10:35:10 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 16608 invoked by uid 99); 14 Apr 2011 10:35:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2011 10:35:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2011 10:35:08 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 44FE62388A19; Thu, 14 Apr 2011 10:34:47 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@commons.apache.org From: mturk@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110414103447.44FE62388A19@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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)); }