Author: bago Date: Wed Feb 22 11:41:23 2012 New Revision: 1292244 URL: http://svn.apache.org/viewvc?rev=1292244&view=rev Log: Fix EOL chars in test file. I believe \r\f is not a valid EOL and is strange that javamail did support this.
Modified: james/jsieve/trunk/core/src/test/java/org/apache/jsieve/MultipleToTest.java Modified: james/jsieve/trunk/core/src/test/java/org/apache/jsieve/MultipleToTest.java URL: http://svn.apache.org/viewvc/james/jsieve/trunk/core/src/test/java/org/apache/jsieve/MultipleToTest.java?rev=1292244&r1=1292243&r2=1292244&view=diff ============================================================================== --- james/jsieve/trunk/core/src/test/java/org/apache/jsieve/MultipleToTest.java (original) +++ james/jsieve/trunk/core/src/test/java/org/apache/jsieve/MultipleToTest.java Wed Feb 22 11:41:23 2012 @@ -29,26 +29,26 @@ import org.apache.jsieve.util.check.Scri public class MultipleToTest extends TestCase { - private static final String SOLO_TO_EMAIL = "Date: Sun, 1 Apr 2007 1100:00:00 +0100 (BST)\r\f" - + "From: roadrun...@acme.example.com\r\f" - + "To: coy...@desert.example.org\r\f" - + "Subject: Who's The Fool?\r\f" + "\r\f" + "Beep-Beep\r\f"; + private static final String SOLO_TO_EMAIL = "Date: Sun, 1 Apr 2007 1100:00:00 +0100 (BST)\r\n" + + "From: roadrun...@acme.example.com\r\n" + + "To: coy...@desert.example.org\r\n" + + "Subject: Who's The Fool?\r\n" + "\r\n" + "Beep-Beep\r\n"; - private static final String MULTIPLE_TO_EMAIL = "Date: Sun, 1 Apr 2007 1100:00:00 +0100 (BST)\r\f" - + "From: roadrun...@acme.example.com\r\f" + private static final String MULTIPLE_TO_EMAIL = "Date: Sun, 1 Apr 2007 1100:00:00 +0100 (BST)\r\n" + + "From: roadrun...@acme.example.com\r\n" + "To: coy...@desert.example.org, b...@example.org, " - + " el...@hunters.example.org,\r\f" - + "Subject: Who's The Fool?\r\f" + "\r\f" + "Beep-Beep\r\f"; + + " el...@hunters.example.org,\r\n" + + "Subject: Who's The Fool?\r\n" + "\r\n" + "Beep-Beep\r\n"; - private static final String FILTER_SCRIPT = "require \"fileinto\";\r\f" - + "if address :is :all \"to\" \"coy...@desert.example.org\" {\r\f" - + " fileinto \"coyote\";\r\f}\r\f" - + "if address :is :all \"to\" \"b...@example.org\" {\r\f" - + " fileinto \"bugs\";\r\f}\r\f" - + "if address :is :all \"to\" \"roadrunnerac...@example.org\" {\r\f" - + " fileinto \"rr\";\r\f}\r\f" - + "if address :is :all \"to\" \"el...@hunters.example.org\" {\r\f" - + " fileinto \"elmer\";\r\f}\r\f"; + private static final String FILTER_SCRIPT = "require \"fileinto\";\r\n" + + "if address :is :all \"to\" \"coy...@desert.example.org\" {\r\n" + + " fileinto \"coyote\";\r\n}\r\n" + + "if address :is :all \"to\" \"b...@example.org\" {\r\n" + + " fileinto \"bugs\";\r\n}\r\n" + + "if address :is :all \"to\" \"roadrunnerac...@example.org\" {\r\n" + + " fileinto \"rr\";\r\n}\r\n" + + "if address :is :all \"to\" \"el...@hunters.example.org\" {\r\n" + + " fileinto \"elmer\";\r\n}\r\n"; public void testSingleTo() throws Exception { ScriptChecker checker = new ScriptChecker(); --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org