JAMES-2529 JMAPFiltering test should support multi-address headers

This crucial test was missing


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

Branch: refs/heads/master
Commit: f4e4204c942c9a24b220a5511babc67379c6482d
Parents: 8340669
Author: Benoit Tellier <[email protected]>
Authored: Tue Oct 23 11:32:10 2018 +0700
Committer: Benoit Tellier <[email protected]>
Committed: Wed Oct 31 08:48:30 2018 +0700

----------------------------------------------------------------------
 .../org/apache/james/jmap/mailet/filter/JMAPFilteringTest.java  | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/f4e4204c/server/protocols/jmap/src/test/java/org/apache/james/jmap/mailet/filter/JMAPFilteringTest.java
----------------------------------------------------------------------
diff --git 
a/server/protocols/jmap/src/test/java/org/apache/james/jmap/mailet/filter/JMAPFilteringTest.java
 
b/server/protocols/jmap/src/test/java/org/apache/james/jmap/mailet/filter/JMAPFilteringTest.java
index 9475a6f..9ab1649 100644
--- 
a/server/protocols/jmap/src/test/java/org/apache/james/jmap/mailet/filter/JMAPFilteringTest.java
+++ 
b/server/protocols/jmap/src/test/java/org/apache/james/jmap/mailet/filter/JMAPFilteringTest.java
@@ -232,6 +232,11 @@ class JMAPFilteringTest {
                         .valueToMatch(USER_1_ADDRESS),
 
                     argumentBuilder(fieldAndHeader.field)
+                        .description("Address exact match in a full " + 
fieldAndHeader.headerName + " header with multiple addresses")
+                        .header(fieldAndHeader.headerName, USER_1_FULL_ADDRESS 
+ ", " + USER_2_FULL_ADDRESS)
+                        .valueToMatch(USER_1_ADDRESS),
+
+                    argumentBuilder(fieldAndHeader.field)
                         .description("Full header exact match in a full " + 
fieldAndHeader.headerName + " header")
                         .header(fieldAndHeader.headerName, USER_1_FULL_ADDRESS)
                         .valueToMatch(USER_1_FULL_ADDRESS),


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to