james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r538032 - /james/mime4j/trunk/src/test/java/org/apache/james/mime4j/decoder/QuotedPrintableInputStreamTest.java
Date Tue, 15 May 2007 01:12:00 GMT
Author: bago
Date: Mon May 14 18:11:59 2007
New Revision: 538032

URL: http://svn.apache.org/viewvc?view=rev&rev=538032
Log:
Changed non-ascii chars in string to unicode literals "\uXXXX" (MIME4J-7)

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

Modified: james/mime4j/trunk/src/test/java/org/apache/james/mime4j/decoder/QuotedPrintableInputStreamTest.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/java/org/apache/james/mime4j/decoder/QuotedPrintableInputStreamTest.java?view=diff&rev=538032&r1=538031&r2=538032
==============================================================================
--- james/mime4j/trunk/src/test/java/org/apache/james/mime4j/decoder/QuotedPrintableInputStreamTest.java
(original)
+++ james/mime4j/trunk/src/test/java/org/apache/james/mime4j/decoder/QuotedPrintableInputStreamTest.java
Mon May 14 18:11:59 2007
@@ -46,19 +46,18 @@
     public void testDecode() throws IOException, UnsupportedEncodingException {
         ByteArrayInputStream bis = null;
         QuotedPrintableInputStream decoder = null;
-        byte[] bytes = null;
 
         bis = new ByteArrayInputStream("=e1=e2=E3=E4\r\n".getBytes("US-ASCII"));
         decoder = new QuotedPrintableInputStream(bis);
-        assertEquals("áâãä\r\n", new String(read(decoder), "ISO8859-1"));
+        assertEquals("\u00e1\u00e2\u00e3\u00e4\r\n", new String(read(decoder), "ISO8859-1"));
         
         bis = new ByteArrayInputStream("=e1=g2=E3=E4\r\n".getBytes("US-ASCII"));
         decoder = new QuotedPrintableInputStream(bis);
-        assertEquals("á=g2ãä\r\n", new String(read(decoder), "ISO8859-1"));
+        assertEquals("\u00e1=g2\u00e3\u00e4\r\n", new String(read(decoder), "ISO8859-1"));
         
         bis = new ByteArrayInputStream("   =e1 =e2  =E3\t=E4  \t \t    \r\n".getBytes("US-ASCII"));
         decoder = new QuotedPrintableInputStream(bis);
-        assertEquals("   á â  ã\tä\r\n", new String(read(decoder), "ISO8859-1"));
+        assertEquals("   \u00e1 \u00e2  \u00e3\t\u00e4\r\n", new String(read(decoder), "ISO8859-1"));
         
         /*
          * Test soft line breaks.



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