From 04e2c47b238bc3fa1a1a876e8cf0001a168abfe4 Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Thu, 13 Jan 2011 13:12:15 -0500 Subject: [PATCH] INT-1743 polished test, increased the sleep time --- .../integration/jms/config/JmsChannelHistoryTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-integration-jms/src/test/java/org/springframework/integration/jms/config/JmsChannelHistoryTests.java b/spring-integration-jms/src/test/java/org/springframework/integration/jms/config/JmsChannelHistoryTests.java index 15d8e6317f..14696f38d5 100644 --- a/spring-integration-jms/src/test/java/org/springframework/integration/jms/config/JmsChannelHistoryTests.java +++ b/spring-integration-jms/src/test/java/org/springframework/integration/jms/config/JmsChannelHistoryTests.java @@ -38,14 +38,14 @@ import org.springframework.integration.message.GenericMessage; public class JmsChannelHistoryTests { @Test - public void testReqRepPerformanceWithConsecutiveMessages() throws Exception{ + public void testMessageHistory() throws Exception{ ActiveMqTestUtils.prepare(); ApplicationContext ac = new ClassPathXmlApplicationContext("JmsChannelHistory-context.xml", this.getClass()); SubscribableJmsChannel jmsChannel = ac.getBean("jmsChannel", SubscribableJmsChannel.class); JmsService service = ac.getBean("subscriber", JmsService.class); jmsChannel.send(new GenericMessage("hello")); - Thread.sleep(1000); + Thread.sleep(5000); verify(service, times(1)).handleMessage(Mockito.any(Message.class)); }