Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4A0858E4B for ; Wed, 10 Aug 2011 18:06:41 +0000 (UTC) Received: (qmail 33071 invoked by uid 500); 10 Aug 2011 18:06:41 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 32971 invoked by uid 500); 10 Aug 2011 18:06:40 -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 32964 invoked by uid 99); 10 Aug 2011 18:06:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 18:06:40 +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; Wed, 10 Aug 2011 18:06:39 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 2BE60238897D for ; Wed, 10 Aug 2011 18:06:20 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1156284 - in /commons/proper/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk: block/BlockDiskCacheUnitTest.java indexed/IndexDiskCacheUnitTest.java Date: Wed, 10 Aug 2011 18:06:20 -0000 To: commits@commons.apache.org From: tv@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110810180620.2BE60238897D@eris.apache.org> Author: tv Date: Wed Aug 10 18:06:19 2011 New Revision: 1156284 URL: http://svn.apache.org/viewvc?rev=1156284&view=rev Log: Use UTF-8 encoding Modified: commons/proper/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/block/BlockDiskCacheUnitTest.java commons/proper/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/indexed/IndexDiskCacheUnitTest.java Modified: commons/proper/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/block/BlockDiskCacheUnitTest.java URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/block/BlockDiskCacheUnitTest.java?rev=1156284&r1=1156283&r2=1156284&view=diff ============================================================================== --- commons/proper/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/block/BlockDiskCacheUnitTest.java (original) +++ commons/proper/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/block/BlockDiskCacheUnitTest.java Wed Aug 10 18:06:19 2011 @@ -105,12 +105,12 @@ public class BlockDiskCacheUnitTest int numBlocksNeeded = blockDisk.calculateTheNumberOfBlocksNeeded( data ); System.out.println( numBlocksNeeded ); - + // get the individual sub arrays. byte[][] chunks = blockDisk.getBlockChunks( data, numBlocksNeeded ); byte[] resultData = new byte[0]; - + for ( short i = 0; i < chunks.length; i++ ) { byte[] chunk = chunks[i]; @@ -122,7 +122,7 @@ public class BlockDiskCacheUnitTest // swap the new and old. resultData = newTotal; } - + Serializable result = (Serializable) elementSerializer.deSerialize( resultData ); System.out.println( result ); assertEquals( "wrong string after retrieval", string, result ); @@ -177,7 +177,7 @@ public class BlockDiskCacheUnitTest public void testUTF8String() throws Exception { - String string = "Iñtërnâtiônàlizætiøn"; + String string = "IÒtÎrn‚tiÙn‡lizÊti¯n"; StringBuffer sb = new StringBuffer(); sb.append( string ); for ( int i = 0; i < 4; i++ ) @@ -220,7 +220,7 @@ public class BlockDiskCacheUnitTest public void testUTF8ByteArray() throws Exception { - String string = "Iñtërnâtiônàlizætiøn"; + String string = "IÒtÎrn‚tiÙn‡lizÊti¯n"; StringBuffer sb = new StringBuffer(); sb.append( string ); for ( int i = 0; i < 4; i++ ) @@ -268,7 +268,7 @@ public class BlockDiskCacheUnitTest throws Exception { X before = new X(); - String string = "Iñtërnâtiônàlizætiøn"; + String string = "IÒtÎrn‚tiÙn‡lizÊti¯n"; StringBuffer sb = new StringBuffer(); sb.append( string ); for ( int i = 0; i < 4; i++ ) Modified: commons/proper/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/indexed/IndexDiskCacheUnitTest.java URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/indexed/IndexDiskCacheUnitTest.java?rev=1156284&r1=1156283&r2=1156284&view=diff ============================================================================== --- commons/proper/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/indexed/IndexDiskCacheUnitTest.java (original) +++ commons/proper/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/indexed/IndexDiskCacheUnitTest.java Wed Aug 10 18:06:19 2011 @@ -792,7 +792,7 @@ public class IndexDiskCacheUnitTest public void testUTF8String() throws Exception { - String string = "Iñtërnâtiônàlizætiøn"; + String string = "IÒtÎrn‚tiÙn‡lizÊti¯n"; StringBuffer sb = new StringBuffer(); sb.append( string ); for ( int i = 0; i < 4; i++ ) @@ -834,7 +834,7 @@ public class IndexDiskCacheUnitTest public void testUTF8ByteArray() throws Exception { - String string = "Iñtërnâtiônàlizætiøn"; + String string = "IÒtÎrn‚tiÙn‡lizÊti¯n"; StringBuffer sb = new StringBuffer(); sb.append( string ); for ( int i = 0; i < 4; i++ )