diff --git a/messaging-modules/spring-jms/src/test/java/com/baeldung/spring/jms/testing/EmbeddedActiveMqIntegrationTest.java b/messaging-modules/spring-jms/src/test/java/com/baeldung/spring/jms/testing/EmbeddedActiveMqIntegrationTest.java index e934b66360..f88cf81cf7 100644 --- a/messaging-modules/spring-jms/src/test/java/com/baeldung/spring/jms/testing/EmbeddedActiveMqIntegrationTest.java +++ b/messaging-modules/spring-jms/src/test/java/com/baeldung/spring/jms/testing/EmbeddedActiveMqIntegrationTest.java @@ -37,7 +37,7 @@ public class EmbeddedActiveMqIntegrationTest { private MessageSender messageSender; @Test - public void whenListening_thenReceivingCorrectMessage() throws JMSException, InterruptedException { + public void whenListening_thenReceivingCorrectMessage() throws JMSException { String queueName = "queue-1"; String messageText = "Test message";