From 207de60c0aafc3f36ec49b0b54454918ae561f65 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Wed, 10 Mar 2021 11:16:18 -0500 Subject: [PATCH] Add logging diagnostics to UdpChannelAdapterTests --- .../integration/ip/udp/UdpChannelAdapterTests.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spring-integration-ip/src/test/java/org/springframework/integration/ip/udp/UdpChannelAdapterTests.java b/spring-integration-ip/src/test/java/org/springframework/integration/ip/udp/UdpChannelAdapterTests.java index d103479193..52d72a5772 100644 --- a/spring-integration-ip/src/test/java/org/springframework/integration/ip/udp/UdpChannelAdapterTests.java +++ b/spring-integration-ip/src/test/java/org/springframework/integration/ip/udp/UdpChannelAdapterTests.java @@ -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();