james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joc...@apache.org
Subject svn commit: r662108 - /james/mime4j/trunk/src/test/java/org/apache/james/mime4j/decoder/DecoderUtilTest.java
Date Sat, 31 May 2008 23:57:51 GMT
Author: jochen
Date: Sat May 31 16:57:51 2008
New Revision: 662108

URL: http://svn.apache.org/viewvc?rev=662108&view=rev
Log:
Recoding the sources in US-ASCII to get rid of encoding problems.

Modified:
    james/mime4j/trunk/src/test/java/org/apache/james/mime4j/decoder/DecoderUtilTest.java

Modified: james/mime4j/trunk/src/test/java/org/apache/james/mime4j/decoder/DecoderUtilTest.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/java/org/apache/james/mime4j/decoder/DecoderUtilTest.java?rev=662108&r1=662107&r2=662108&view=diff
==============================================================================
--- james/mime4j/trunk/src/test/java/org/apache/james/mime4j/decoder/DecoderUtilTest.java
(original)
+++ james/mime4j/trunk/src/test/java/org/apache/james/mime4j/decoder/DecoderUtilTest.java
Sat May 31 16:57:51 2008
@@ -60,15 +60,15 @@
     public void testDecodeQ() throws UnsupportedEncodingException {
         String s = DecoderUtil.decodeQ("=e1_=e2=09=E3_=E4_", 
                                                          "ISO8859-1");
-        assertEquals("á â\tã ä ", s);
+        assertEquals("\u00e1 \u00e2\t\u00e3 \u00e4 ", s);
     }
     
     public void testDecodeEncodedWords() {
         assertEquals("", DecoderUtil.decodeEncodedWords(""));
         assertEquals("Yada yada", DecoderUtil.decodeEncodedWords("Yada yada"));
-        assertEquals("  áâã\tä", 
+        assertEquals("  \u00e1\u00e2\u00e3\t\u00e4", 
                 DecoderUtil.decodeEncodedWords("=?iso-8859-1?Q?_=20=e1=e2=E3=09=E4?="));
-        assertEquals("Word 1 '  âã\tä'. Word 2 '  âã\tä'", 
+        assertEquals("Word 1 '  \u00e2\u00e3\t\u00e4'. Word 2 '  \u00e2\u00e3\t\u00e4'",

                 DecoderUtil.decodeEncodedWords("Word 1 '=?iso-8859-1?Q?_=20=e2=E3=09=E4?="
                         + "'. Word 2 '=?iso-8859-1?q?_=20=e2=E3=09=E4?='"));
         assertEquals("=?iso-8859-YADA?Q?_=20=t1=e2=E3=09=E4?=", 



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message