This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit a399049bcbebaffa2a9384134a63ea131e4ef4a9
Author: Benoit Tellier <btell...@linagora.com>
AuthorDate: Fri Dec 2 23:21:14 2022 +0700

    JAMES-3754 MessageManager::getMailboxPath no longer throws
---
 .../draft/methods/SetMessagesCreationProcessorTest.java    | 14 --------------
 1 file changed, 14 deletions(-)

diff --git 
a/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/draft/methods/SetMessagesCreationProcessorTest.java
 
b/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/draft/methods/SetMessagesCreationProcessorTest.java
index a8eb038ecc..1db876ea72 100644
--- 
a/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/draft/methods/SetMessagesCreationProcessorTest.java
+++ 
b/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/draft/methods/SetMessagesCreationProcessorTest.java
@@ -373,20 +373,6 @@ public class SetMessagesCreationProcessorTest {
         assertThatThrownBy(() -> 
sut.assertIsUserOwnerOfMailboxes(ImmutableList.of(mailboxId), session).block());
     }
 
-    @Test
-    public void 
assertIsUserOwnerOfMailboxesShouldThrowWhenRetrievingMailboxPathFails() throws 
Exception {
-        InMemoryId mailboxId = InMemoryId.of(6789);
-        MessageManager mailbox = mock(MessageManager.class);
-        when(mockedMailboxManager.getMailbox(mailboxId, session))
-            .thenReturn(mailbox);
-        when(mockedMailboxIdFactory.fromString(mailboxId.serialize()))
-            .thenReturn(mailboxId);
-        when(mailbox.getMailboxPath())
-            .thenThrow(new MailboxException());
-
-        assertThatThrownBy(() -> 
sut.assertIsUserOwnerOfMailboxes(ImmutableList.of(mailboxId), session).block());
-    }
-
     @Test
     public void 
assertIsUserOwnerOfMailboxesShouldThrowWhenUserIsNotTheOwnerOfTheMailbox() 
throws Exception {
         InMemoryId mailboxId = InMemoryId.of(6789);


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org
For additional commands, e-mail: notifications-h...@james.apache.org

Reply via email to