You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/09/12 23:39:23 UTC
svn commit: r280429 -
/directory/asn1/trunk/ber-new/src/test/org/apache/asn1new/util/MutableStringTest.java
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);
}
-*/
}