Skip to content

Commit 16e7b45

Browse files
committed
Add TaskScheduler for adapter in testNet tests
1 parent 047565b commit 16e7b45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-integration-ip/src/test/java/org/springframework/integration/ip/tcp/TcpReceivingChannelAdapterTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ public void testNet() throws Exception {
8282
int port = scf.getPort();
8383
QueueChannel channel = new QueueChannel();
8484
adapter.setOutputChannel(channel);
85-
adapter.setBeanFactory(mock(BeanFactory.class));
85+
adapter.setBeanFactory(mock());
86+
adapter.setTaskScheduler(new SimpleAsyncTaskScheduler());
8687
adapter.afterPropertiesSet();
8788
Socket socket = SocketFactory.getDefault().createSocket("localhost", port);
8889
socket.getOutputStream().write("Test1\r\n".getBytes());

0 commit comments

Comments
 (0)