You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2017/03/16 10:22:56 UTC

svn commit: r1787150 - /commons/proper/email/trunk/src/test/java/org/apache/commons/mail/SendWithAttachmentsTest.java

Author: sebb
Date: Thu Mar 16 10:22:56 2017
New Revision: 1787150

URL: http://svn.apache.org/viewvc?rev=1787150&view=rev
Log:
Avoid name folding so test works without needing to unfold

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

Modified: commons/proper/email/trunk/src/test/java/org/apache/commons/mail/SendWithAttachmentsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/email/trunk/src/test/java/org/apache/commons/mail/SendWithAttachmentsTest.java?rev=1787150&r1=1787149&r2=1787150&view=diff
==============================================================================
--- commons/proper/email/trunk/src/test/java/org/apache/commons/mail/SendWithAttachmentsTest.java (original)
+++ commons/proper/email/trunk/src/test/java/org/apache/commons/mail/SendWithAttachmentsTest.java Thu Mar 16 10:22:56 2017
@@ -130,7 +130,8 @@ public class SendWithAttachmentsTest ext
 
         /** File to be used to test file attachments (Must be valid) */
         /** Use umlaut characters to test if the filename is properly encoded */
-        attachment.setName("Test Attachment - a>ä, o>ö, u>ü, au>äu");
+        // use short name to avoid folding. Otherwise need to unfold when checking result.
+        attachment.setName("a>ä, o>ö, u>ü, au>äu");
         attachment.setDescription("Test Attachment Desc");
         attachment.setPath(testFile.getAbsolutePath());
         this.email.attach(attachment);