From 03793e3dc4ce321da2ddba1fe6fdd3e0840ffc6f Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Fri, 24 Mar 2017 12:48:40 -0400 Subject: [PATCH] INT-4247: Jdbc Lock Registry Test Diagnostics https://jira.spring.io/browse/INT-4247 --- .../jdbc/leader/JdbcLockRegistryLeaderInitiatorTests.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/leader/JdbcLockRegistryLeaderInitiatorTests.java b/spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/leader/JdbcLockRegistryLeaderInitiatorTests.java index 806ba1824a..b4c5b02381 100644 --- a/spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/leader/JdbcLockRegistryLeaderInitiatorTests.java +++ b/spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/leader/JdbcLockRegistryLeaderInitiatorTests.java @@ -25,8 +25,10 @@ import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; +import org.apache.log4j.Level; import org.junit.AfterClass; import org.junit.BeforeClass; +import org.junit.Rule; import org.junit.Test; import org.springframework.integration.jdbc.lock.DefaultLockRepository; @@ -35,18 +37,24 @@ import org.springframework.integration.leader.Context; import org.springframework.integration.leader.DefaultCandidate; import org.springframework.integration.leader.event.LeaderEventPublisher; import org.springframework.integration.support.leader.LockRegistryLeaderInitiator; +import org.springframework.integration.test.rule.Log4jLevelAdjuster; import org.springframework.jdbc.datasource.embedded.EmbeddedDatabase; import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder; import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType; /** * @author Artem Bilan + * @author Gary Russell * @since 4.3.1 */ public class JdbcLockRegistryLeaderInitiatorTests { public static EmbeddedDatabase dataSource; + @Rule + public Log4jLevelAdjuster adjuster = new Log4jLevelAdjuster(Level.DEBUG, "org.springframework.integration", + "org.springframework.integration.jdbc", "org.springframework.jdbc", "org.apache.derby"); + @BeforeClass public static void init() { dataSource = new EmbeddedDatabaseBuilder()