james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r678321 - /james/mime4j/trunk/src/test/java/org/apache/james/mime4j/message/MessageParserTest.java
Date Sun, 20 Jul 2008 20:16:21 GMT
Author: bago
Date: Sun Jul 20 13:16:20 2008
New Revision: 678321

URL: http://svn.apache.org/viewvc?rev=678321&view=rev
Log:
Make sure we don't alter expected and actual results before checking (doesn't change the current
tests failures).

Modified:
    james/mime4j/trunk/src/test/java/org/apache/james/mime4j/message/MessageParserTest.java

Modified: james/mime4j/trunk/src/test/java/org/apache/james/mime4j/message/MessageParserTest.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/java/org/apache/james/mime4j/message/MessageParserTest.java?rev=678321&r1=678320&r2=678321&view=diff
==============================================================================
--- james/mime4j/trunk/src/test/java/org/apache/james/mime4j/message/MessageParserTest.java
(original)
+++ james/mime4j/trunk/src/test/java/org/apache/james/mime4j/message/MessageParserTest.java
Sun Jul 20 13:16:20 2008
@@ -201,10 +201,8 @@
                         charset = "ISO8859-1";
                     }
 
-                    String s1 = IOUtils.toString(expected, charset).replaceAll(
-                            "\r", "");
-                    String s2 = IOUtils.toString(((TextBody) b).getReader())
-                            .replaceAll("\r", "");
+                    String s1 = IOUtils.toString(expected, charset);
+                    String s2 = IOUtils.toString(((TextBody) b).getReader());
                     assertEquals(expectedFile.getName(), s1, s2);
                 } else {
                     assertEqualsBinary(expectedFile.getName(), expected,



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