james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwiederk...@apache.org
Subject svn commit: r737371 - /james/mime4j/trunk/src/test/java/org/apache/james/mime4j/codec/EncoderUtilTest.java
Date Sat, 24 Jan 2009 14:52:16 GMT
Author: mwiederkehr
Date: Sat Jan 24 14:52:16 2009
New Revision: 737371

URL: http://svn.apache.org/viewvc?rev=737371&view=rev
Log:
MIME4J-107: two more test cases taken from rfc 5322

Modified:
    james/mime4j/trunk/src/test/java/org/apache/james/mime4j/codec/EncoderUtilTest.java

Modified: james/mime4j/trunk/src/test/java/org/apache/james/mime4j/codec/EncoderUtilTest.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/java/org/apache/james/mime4j/codec/EncoderUtilTest.java?rev=737371&r1=737370&r2=737371&view=diff
==============================================================================
--- james/mime4j/trunk/src/test/java/org/apache/james/mime4j/codec/EncoderUtilTest.java (original)
+++ james/mime4j/trunk/src/test/java/org/apache/james/mime4j/codec/EncoderUtilTest.java Sat
Jan 24 14:52:16 2009
@@ -38,6 +38,10 @@
                 .encodeAddressDisplayName(" test\ttest "));
         assertEquals("\"test()\"", EncoderUtil
                 .encodeAddressDisplayName("test()"));
+        assertEquals("\"John Q. Public\"", EncoderUtil
+                .encodeAddressDisplayName("John Q. Public"));
+        assertEquals("\"Giant; \\\"Big\\\" Box\"", EncoderUtil
+                .encodeAddressDisplayName("Giant; \"Big\" Box"));
         assertEquals("=?ISO-8859-1?Q?Semmelbr=F6sel?=", EncoderUtil
                 .encodeAddressDisplayName("Semmelbr\366sel"));
         // dollar sign as to be encoded as =24 when used as a word in a phrase



---------------------------------------------------------------------
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