Repository: james-project
Updated Branches:
  refs/heads/master 618845610 -> 2649a5c6b


JAMES-2183 Allows message's flag and mailbox via IMAP


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

Branch: refs/heads/master
Commit: 9c50c0bf592078ba7f88db7dab4283cd1518c72d
Parents: 4667548
Author: quynhn <[email protected]>
Authored: Fri Oct 20 17:59:10 2017 +0700
Committer: Raphael Ouazana <[email protected]>
Committed: Wed Oct 25 17:12:09 2017 +0200

----------------------------------------------------------------------
 .../jmap/methods/integration/cucumber/ImapStepdefs.java | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/9c50c0bf/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/ImapStepdefs.java
----------------------------------------------------------------------
diff --git 
a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/ImapStepdefs.java
 
b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/ImapStepdefs.java
index 837d394..4223a6f 100644
--- 
a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/ImapStepdefs.java
+++ 
b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/ImapStepdefs.java
@@ -62,6 +62,18 @@ public class ImapStepdefs {
         }
     }
 
+    @Then("^the message has IMAP flag \"([^\"]*)\" in mailbox \"([^\"]*)\" for 
\"([^\"]*)\"$")
+    public void hasMessageWithFlagInMailbox(String flags, String mailbox, 
String username) throws Throwable {
+        try (IMAPMessageReader imapMessageReader = new 
IMAPMessageReader(LOCALHOST, IMAP_PORT);) {
+            assertThat(
+                
imapMessageReader.userReceivedMessageWithFlagsInMailbox(username,
+                    userStepdefs.getUserPassword(username),
+                    mailbox,
+                    flags))
+                .isTrue();
+        }
+    }
+
     @Then("^the user has a IMAP notification about (\\d+) new message when 
selecting mailbox \"([^\"]*)\"$")
     public void hasANotificationAboutNewMessagesInMailbox(int numOfNewMessage, 
String mailbox) throws Throwable {
         try (IMAPMessageReader imapMessageReader = new 
IMAPMessageReader(LOCALHOST, IMAP_PORT);) {


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

Reply via email to