Add logging diagnostics to UdpChannelAdapterTests

This commit is contained in:
Artem Bilan
2021-03-10 11:16:18 -05:00
parent 61153a96fc
commit 207de60c0a

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2021 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.
@@ -47,6 +47,7 @@ import org.springframework.integration.handler.ServiceActivatingHandler;
import org.springframework.integration.ip.IpHeaders;
import org.springframework.integration.ip.util.SocketTestUtils;
import org.springframework.integration.support.MessageBuilder;
import org.springframework.integration.test.rule.Log4j2LevelAdjuster;
import org.springframework.messaging.Message;
import org.springframework.messaging.SubscribableChannel;
import org.springframework.util.SocketUtils;
@@ -62,6 +63,9 @@ import org.springframework.util.SocketUtils;
*/
public class UdpChannelAdapterTests {
@Rule
public Log4j2LevelAdjuster adjuster = Log4j2LevelAdjuster.trace();
@Rule
public MulticastRule multicastRule = new MulticastRule();