JAMES-2169 Use MailboxPath::forUser more widely

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

Branch: refs/heads/master
Commit: a7ffeb39d9156449e1da47df6efe217238032048
Parents: 0f69859
Author: benwa <[email protected]>
Authored: Tue Oct 3 13:12:08 2017 +0700
Committer: benwa <[email protected]>
Committed: Wed Oct 4 16:24:46 2017 +0700

----------------------------------------------------------------------
 .../apache/james/mpt/imapmailbox/suite/AuthenticatedState.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/a7ffeb39/mpt/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/AuthenticatedState.java
----------------------------------------------------------------------
diff --git 
a/mpt/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/AuthenticatedState.java
 
b/mpt/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/AuthenticatedState.java
index dd364e8..8a2d075 100644
--- 
a/mpt/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/AuthenticatedState.java
+++ 
b/mpt/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/AuthenticatedState.java
@@ -412,14 +412,14 @@ public abstract class AuthenticatedState extends 
BasicImapCommands {
     @Test
     public void listShouldNotListMailboxWithOtherNamspaceUS() throws Exception 
{
         Assume.assumeTrue(system.supports(Feature.NAMESPACE_SUPPORT));
-        system.createMailbox(MailboxPath.forUser(USER, "Other"));
+        system.createMailbox(new MailboxPath("#namespace", USER, "Other"));
         simpleScriptedTestProtocol.run("ListMailboxes");
     }
 
     @Test
     public void listShouldNotListMailboxWithOtherNamspaceITALY() throws 
Exception {
         Assume.assumeTrue(system.supports(Feature.NAMESPACE_SUPPORT));
-        system.createMailbox(MailboxPath.forUser(USER, "Other"));
+        system.createMailbox(new MailboxPath("#namespace", USER, "Other"));
         simpleScriptedTestProtocol
             .withLocale(Locale.ITALY)
             .run("ListMailboxes");
@@ -428,7 +428,7 @@ public abstract class AuthenticatedState extends 
BasicImapCommands {
     @Test
     public void listShouldNotListMailboxWithOtherNamspaceKOREA() throws 
Exception {
         Assume.assumeTrue(system.supports(Feature.NAMESPACE_SUPPORT));
-        system.createMailbox(MailboxPath.forUser(USER, "Other"));
+        system.createMailbox(new MailboxPath("#namespace", USER, "Other"));
         simpleScriptedTestProtocol
             .withLocale(Locale.KOREA)
             .run("ListMailboxes");


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

Reply via email to