commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
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 GMT
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++ )



Mime
View raw message