directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r280429 - /directory/asn1/trunk/ber-new/src/test/org/apache/asn1new/util/MutableStringTest.java
Date Mon, 12 Sep 2005 21:39:23 GMT
Author: elecharny
Date: Mon Sep 12 14:39:19 2005
New Revision: 280429

URL: http://svn.apache.org/viewcvs?rev=280429&view=rev
Log:
Rolling back to the initial test

Modified:
    directory/asn1/trunk/ber-new/src/test/org/apache/asn1new/util/MutableStringTest.java

Modified: directory/asn1/trunk/ber-new/src/test/org/apache/asn1new/util/MutableStringTest.java
URL: http://svn.apache.org/viewcvs/directory/asn1/trunk/ber-new/src/test/org/apache/asn1new/util/MutableStringTest.java?rev=280429&r1=280428&r2=280429&view=diff
==============================================================================
--- directory/asn1/trunk/ber-new/src/test/org/apache/asn1new/util/MutableStringTest.java (original)
+++ directory/asn1/trunk/ber-new/src/test/org/apache/asn1new/util/MutableStringTest.java Mon
Sep 12 14:39:19 2005
@@ -16,8 +16,6 @@
  */
 package org.apache.asn1new.util;
 
-import java.io.UnsupportedEncodingException;
-
 import junit.framework.Assert;
 import junit.framework.TestCase;
 
@@ -43,23 +41,15 @@
      * Test a string with non ASCII chars
      *
      */
-/*    public void testNonASCIIString()
+    public void testNonASCIIString()
     {
-        try 
-        {
-            MutableString ms = new MutableString("Emmanuel Lécharny".getBytes("UTF-8"));
-            String s = ms.toString();
-            
-            int msLength = ms.getLength();
-            int sLength = s.getBytes().length;
-            
-            Assert.assertEquals(new String("Emmanuel Lécharny".getBytes("UTF-8")) , s);
  
-            Assert.assertEquals( sLength, msLength);
-        }
-        catch ( UnsupportedEncodingException uee )
-        {
-            Assert.fail();
-        }
+        MutableString ms = new MutableString("Emmanuel Lécharny");
+        String s = ms.toString();
+        
+        int msLength = ms.getLength();
+        int sLength = s.getBytes().length;
+        
+        Assert.assertEquals("Emmanuel Lécharny" , s);   
+        Assert.assertEquals( sLength, msLength);
     }
-*/
 }



Mime
View raw message