Skip to content

Commit 6f56e8b

Browse files
committed
Add UDP Test Diagnostics
1 parent d273345 commit 6f56e8b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spring-integration-ip/src/test/java/org/springframework/integration/ip/udp/DatagramPacketMulticastSendingHandlerTests.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,12 +32,14 @@
3232
import java.util.concurrent.atomic.AtomicInteger;
3333

3434
import org.apache.commons.logging.LogFactory;
35+
import org.apache.log4j.Level;
3536
import org.junit.Rule;
3637
import org.junit.Test;
3738

3839
import org.springframework.beans.factory.BeanFactory;
3940
import org.springframework.integration.ip.IpHeaders;
4041
import org.springframework.integration.support.MessageBuilder;
42+
import org.springframework.integration.test.rule.Log4jLevelAdjuster;
4143
import org.springframework.messaging.Message;
4244

4345
/**
@@ -50,6 +52,9 @@ public class DatagramPacketMulticastSendingHandlerTests {
5052
@Rule
5153
public MulticastRule multicastRule = new MulticastRule();
5254

55+
@Rule
56+
public Log4jLevelAdjuster adjuster = new Log4jLevelAdjuster(Level.DEBUG, "org.springframework.integration");
57+
5358
@Test
5459
public void verifySendMulticast() throws Exception {
5560
MulticastSocket socket;

0 commit comments

Comments
 (0)