INT-1743 polished test, increased the sleep time

This commit is contained in:
Oleg Zhurakousky
2011-01-13 13:12:15 -05:00
parent 529cf4686e
commit 04e2c47b23

View File

@@ -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<String>("hello"));
Thread.sleep(1000);
Thread.sleep(5000);
verify(service, times(1)).handleMessage(Mockito.any(Message.class));
}