chibenwa commented on code in PR #1505:
URL: https://github.com/apache/james-project/pull/1505#discussion_r1154220128


##########
mailbox/api/src/test/java/org/apache/james/mailbox/MailboxManagerTest.java:
##########
@@ -2933,7 +2933,7 @@ void hasRightShouldThrowOnUnknownMailbox() {
                     MailboxPath.forUser(USER_1, "notFound"),
                     MailboxACL.Right.Administer,
                     session))
-                .isInstanceOf(MailboxNotFoundException.class);
+                .hasRootCauseExactlyInstanceOf(MailboxNotFoundException.class);

Review Comment:
   :-1: we should manage to unwrap the exception in order not to break things.
   
   CF MailboxReactorUtils for blocking.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to