james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [2/7] james-project git commit: JAMES-1717 Improve MPT SMTP tests : an empty line needs to be added between headers and body
Date Fri, 20 May 2016 11:53:24 GMT
JAMES-1717 Improve MPT SMTP tests : an empty line needs to be added between headers and body


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/bd314bf7
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/bd314bf7
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/bd314bf7

Branch: refs/heads/master
Commit: bd314bf77e8687b7a64f83208edaaa6aaf2011c9
Parents: b644970
Author: Benoit Tellier <btellier@linagora.com>
Authored: Wed Apr 20 10:31:40 2016 +0700
Committer: Benoit Tellier <btellier@linagora.com>
Committed: Thu May 19 17:10:39 2016 +0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/james/mpt/smtp/ForwardSmtpTest.java  | 3 ++-
 .../src/main/resources/org/apache/james/smtp/scripts/helo.test    | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/bd314bf7/mpt/impl/smtp/core/src/main/java/org/apache/james/mpt/smtp/ForwardSmtpTest.java
----------------------------------------------------------------------
diff --git a/mpt/impl/smtp/core/src/main/java/org/apache/james/mpt/smtp/ForwardSmtpTest.java
b/mpt/impl/smtp/core/src/main/java/org/apache/james/mpt/smtp/ForwardSmtpTest.java
index 27859a2..bc3beaa 100644
--- a/mpt/impl/smtp/core/src/main/java/org/apache/james/mpt/smtp/ForwardSmtpTest.java
+++ b/mpt/impl/smtp/core/src/main/java/org/apache/james/mpt/smtp/ForwardSmtpTest.java
@@ -87,6 +87,7 @@ public class ForwardSmtpTest extends AbstractSimpleScriptedTestProtocol
{
         .then()
             .statusCode(200)
             .body("[0].from", equalTo("matthieu@yopmail.com"))
-            .body("[0].subject", equalTo("test"));
+            .body("[0].subject", equalTo("test"))
+            .body("[0].text", equalTo("content"));
     }
 }

http://git-wip-us.apache.org/repos/asf/james-project/blob/bd314bf7/mpt/impl/smtp/core/src/main/resources/org/apache/james/smtp/scripts/helo.test
----------------------------------------------------------------------
diff --git a/mpt/impl/smtp/core/src/main/resources/org/apache/james/smtp/scripts/helo.test
b/mpt/impl/smtp/core/src/main/resources/org/apache/james/smtp/scripts/helo.test
index 637f77d..36d609e 100644
--- a/mpt/impl/smtp/core/src/main/resources/org/apache/james/smtp/scripts/helo.test
+++ b/mpt/impl/smtp/core/src/main/resources/org/apache/james/smtp/scripts/helo.test
@@ -11,6 +11,7 @@ S: 250 2.1.0 Sender <matthieu@yopmail.com> OK
 S: 250 2.1.5 Recipient <bob@mydomain.tld> OK
 S: 354 Ok Send data ending with <CRLF>.<CRLF>
 C: subject: test
-C: test
+C:
+C: content
 C: .
 S: 250 2.6.0 Message received


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