Some JmsMockTests tweaks

This commit is contained in:
Artem Bilan
2022-06-10 15:42:03 -04:00
parent 80af14a2e6
commit 0b83398a9c
2 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@
jms-template="jmsTemplate"
channel="inputChannel"
auto-startup="false">
<int:poller fixed-rate="500" max-messages-per-poll="1" error-channel="errorChannel"/>
<int:poller fixed-delay="500" max-messages-per-poll="1" error-channel="errorChannel"/>
</int-jms:inbound-channel-adapter>
<bean id="jmsTemplate" class="org.mockito.Mockito" factory-method="mock">

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original author or authors.
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -162,7 +162,7 @@ public class JmsMockTests {
*/
protected boolean verifyJmsMessageReceivedOnOutputChannel(Object obj, SubscribableChannel expectedOutputChannel,
CountDownHandler handler) throws InterruptedException {
return verifyJmsMessageOnOutputChannel(obj, expectedOutputChannel, handler, 7000);
return verifyJmsMessageOnOutputChannel(obj, expectedOutputChannel, handler, 10000);
}