You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2014/05/06 23:53:11 UTC
svn commit: r1592898 - in /commons/proper/email/trunk: pom.xml
src/test/java/org/apache/commons/mail/SimpleEmailTest.java
Author: tn
Date: Tue May 6 21:53:11 2014
New Revision: 1592898
URL: http://svn.apache.org/r1592898
Log:
Fix test failures due to wrong encoding used during test execution.
Modified:
commons/proper/email/trunk/pom.xml
commons/proper/email/trunk/src/test/java/org/apache/commons/mail/SimpleEmailTest.java
Modified: commons/proper/email/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/proper/email/trunk/pom.xml?rev=1592898&r1=1592897&r2=1592898&view=diff
==============================================================================
--- commons/proper/email/trunk/pom.xml (original)
+++ commons/proper/email/trunk/pom.xml Tue May 6 21:53:11 2014
@@ -283,6 +283,9 @@
<commons.release.version>1.3.2</commons.release.version>
<commons.rc.version>RC1</commons.rc.version>
<commons.binary.suffix>-bin</commons.binary.suffix>
+
+ <!-- override the default commons encoding property -->
+ <commons.encoding>UTF-8</commons.encoding>
</properties>
<build>
Modified: commons/proper/email/trunk/src/test/java/org/apache/commons/mail/SimpleEmailTest.java
URL: http://svn.apache.org/viewvc/commons/proper/email/trunk/src/test/java/org/apache/commons/mail/SimpleEmailTest.java?rev=1592898&r1=1592897&r2=1592898&view=diff
==============================================================================
--- commons/proper/email/trunk/src/test/java/org/apache/commons/mail/SimpleEmailTest.java (original)
+++ commons/proper/email/trunk/src/test/java/org/apache/commons/mail/SimpleEmailTest.java Tue May 6 21:53:11 2014
@@ -155,7 +155,7 @@ public class SimpleEmailTest extends Abs
String message = getMessageAsString(0);
// check that the charset has been correctly set
- assertTrue(message.contains("Content-Type: text/plain; charset=utf-8"));
+ assertTrue(message.toLowerCase().contains("content-type: text/plain; charset=utf-8"));
System.clearProperty(EmailConstants.MAIL_MIME_CHARSET);
}