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 9d61daf2c7f8bef209c727a0fdc8a43d31706722 Author: Benoit Tellier <btell...@linagora.com> AuthorDate: Thu Jun 6 11:00:08 2019 +0700 JAMES-2774 Solve some intelliJ warnings in RabbitMQ EventBus tests --- .../james/mailbox/events/RabbitMQEventBusTest.java | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/mailbox/event/event-rabbitmq/src/test/java/org/apache/james/mailbox/events/RabbitMQEventBusTest.java b/mailbox/event/event-rabbitmq/src/test/java/org/apache/james/mailbox/events/RabbitMQEventBusTest.java index 525b16d..b7b2da9 100644 --- a/mailbox/event/event-rabbitmq/src/test/java/org/apache/james/mailbox/events/RabbitMQEventBusTest.java +++ b/mailbox/event/event-rabbitmq/src/test/java/org/apache/james/mailbox/events/RabbitMQEventBusTest.java @@ -317,7 +317,7 @@ class RabbitMQEventBusTest implements GroupContract.SingleEventBusGroupContract, } @Test - void dispatchShouldWorkAfterNetworkIssuesForOldRegistration() throws Exception { + void dispatchShouldWorkAfterNetworkIssuesForOldRegistration() { rabbitMQEventBusWithNetWorkIssue.start(); MailboxListener listener = newListener(); rabbitMQEventBusWithNetWorkIssue.register(listener, GROUP_A); @@ -346,7 +346,7 @@ class RabbitMQEventBusTest implements GroupContract.SingleEventBusGroupContract, } @Test - void dispatchShouldWorkAfterRestartForOldRegistration() throws Exception { + void dispatchShouldWorkAfterRestartForOldRegistration() { eventBus.start(); MailboxListener listener = newListener(); eventBus.register(listener, GROUP_A); @@ -358,7 +358,7 @@ class RabbitMQEventBusTest implements GroupContract.SingleEventBusGroupContract, } @Test - void dispatchShouldWorkAfterRestartForNewRegistration() throws Exception { + void dispatchShouldWorkAfterRestartForNewRegistration() { eventBus.start(); MailboxListener listener = newListener(); @@ -373,7 +373,7 @@ class RabbitMQEventBusTest implements GroupContract.SingleEventBusGroupContract, } @Test - void redeliverShouldWorkAfterRestartForOldRegistration() throws Exception { + void redeliverShouldWorkAfterRestartForOldRegistration() { eventBus.start(); MailboxListener listener = newListener(); eventBus.register(listener, GROUP_A); @@ -385,7 +385,7 @@ class RabbitMQEventBusTest implements GroupContract.SingleEventBusGroupContract, } @Test - void redeliverShouldWorkAfterRestartForNewRegistration() throws Exception { + void redeliverShouldWorkAfterRestartForNewRegistration() { eventBus.start(); MailboxListener listener = newListener(); @@ -398,7 +398,7 @@ class RabbitMQEventBusTest implements GroupContract.SingleEventBusGroupContract, } @Test - void dispatchShouldWorkAfterRestartForOldKeyRegistration() throws Exception { + void dispatchShouldWorkAfterRestartForOldKeyRegistration() { eventBus.start(); MailboxListener listener = newListener(); eventBus.register(listener, KEY_1); @@ -410,7 +410,7 @@ class RabbitMQEventBusTest implements GroupContract.SingleEventBusGroupContract, } @Test - void dispatchShouldWorkAfterRestartForNewKeyRegistration() throws Exception { + void dispatchShouldWorkAfterRestartForNewKeyRegistration() { eventBus.start(); MailboxListener listener = newListener(); @@ -423,7 +423,7 @@ class RabbitMQEventBusTest implements GroupContract.SingleEventBusGroupContract, } @Test - void dispatchShouldWorkAfterNetworkIssuesForNewRegistration() throws Exception { + void dispatchShouldWorkAfterNetworkIssuesForNewRegistration() { eventBus.start(); MailboxListener listener = newListener(); @@ -440,7 +440,7 @@ class RabbitMQEventBusTest implements GroupContract.SingleEventBusGroupContract, } @Test - void redeliverShouldWorkAfterNetworkIssuesForNewRegistration() throws Exception { + void redeliverShouldWorkAfterNetworkIssuesForNewRegistration() { eventBus.start(); MailboxListener listener = newListener(); @@ -457,7 +457,7 @@ class RabbitMQEventBusTest implements GroupContract.SingleEventBusGroupContract, } @Test - void dispatchShouldWorkAfterNetworkIssuesForOldKeyRegistration() throws Exception { + void dispatchShouldWorkAfterNetworkIssuesForOldKeyRegistration() { eventBus.start(); MailboxListener listener = newListener(); when(listener.getExecutionMode()).thenReturn(MailboxListener.ExecutionMode.ASYNCHRONOUS); @@ -475,7 +475,7 @@ class RabbitMQEventBusTest implements GroupContract.SingleEventBusGroupContract, } @Test - void dispatchShouldWorkAfterNetworkIssuesForNewKeyRegistration() throws Exception { + void dispatchShouldWorkAfterNetworkIssuesForNewKeyRegistration() { eventBus.start(); MailboxListener listener = newListener(); when(listener.getExecutionMode()).thenReturn(MailboxListener.ExecutionMode.ASYNCHRONOUS); --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org