commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1507611 - /commons/proper/email/trunk/src/test/java/org/apache/commons/mail/EmailTest.java
Date Sat, 27 Jul 2013 09:23:07 GMT
Author: britter
Date: Sat Jul 27 09:23:07 2013
New Revision: 1507611

URL: http://svn.apache.org/r1507611
Log:
Simply assertion

Modified:
    commons/proper/email/trunk/src/test/java/org/apache/commons/mail/EmailTest.java

Modified: commons/proper/email/trunk/src/test/java/org/apache/commons/mail/EmailTest.java
URL: http://svn.apache.org/viewvc/commons/proper/email/trunk/src/test/java/org/apache/commons/mail/EmailTest.java?rev=1507611&r1=1507610&r2=1507611&view=diff
==============================================================================
--- commons/proper/email/trunk/src/test/java/org/apache/commons/mail/EmailTest.java (original)
+++ commons/proper/email/trunk/src/test/java/org/apache/commons/mail/EmailTest.java Sat Jul
27 09:23:07 2013
@@ -910,7 +910,7 @@ public class EmailTest extends AbstractE
         
         assertTrue(email.getHeaders().size() == 1);
         // the header should not yet be folded -> will be done by buildMimeMessage()
-        assertTrue(email.getHeaders().get("X-LongHeader").toString().indexOf("\r\n") == -1);
+        assertFalse(email.getHeaders().get("X-LongHeader").toString().contains("\r\n"));
         
         email.buildMimeMessage();
 



Mime
View raw message