Skip to content

Commit 1fe22ea

Browse files
committed
Add TCP Test Diagnostics
1 parent 04ce95b commit 1fe22ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
import javax.net.SocketFactory;
3636

37+
import org.apache.log4j.Level;
3738
import org.junit.Rule;
3839
import org.junit.Test;
3940

@@ -44,6 +45,7 @@
4445
import org.springframework.integration.ip.tcp.serializer.ByteArrayStxEtxSerializer;
4546
import org.springframework.integration.ip.util.SocketTestUtils;
4647
import org.springframework.integration.ip.util.TestingUtilities;
48+
import org.springframework.integration.test.rule.Log4jLevelAdjuster;
4749
import org.springframework.integration.test.support.LongRunningIntegrationTest;
4850
import org.springframework.messaging.Message;
4951
import org.springframework.messaging.support.ErrorMessage;
@@ -56,6 +58,10 @@
5658
*/
5759
public class TcpNioConnectionReadTests {
5860

61+
@Rule
62+
public final Log4jLevelAdjuster adjuster = new Log4jLevelAdjuster(Level.TRACE,
63+
"org.springframework.integration.ip.tcp");
64+
5965
@Rule
6066
public LongRunningIntegrationTest longRunningIntegrationTest = new LongRunningIntegrationTest();
6167

0 commit comments

Comments
 (0)