activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject [2/2] git commit: https://issues.apache.org/jira/browse/AMQ-4365 - fix up LeaseDatabaseLockerTest config, needs a lockable instance
Date Tue, 01 Oct 2013 12:02:32 GMT
https://issues.apache.org/jira/browse/AMQ-4365 - fix up LeaseDatabaseLockerTest config, needs
a lockable instance


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/45e7d3a2
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/45e7d3a2
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/45e7d3a2

Branch: refs/heads/trunk
Commit: 45e7d3a21b4f944df9f2824f58fd135dd326ee59
Parents: 2a5ad36
Author: gtully <gary.tully@gmail.com>
Authored: Tue Oct 1 13:00:40 2013 +0100
Committer: gtully <gary.tully@gmail.com>
Committed: Tue Oct 1 13:02:17 2013 +0100

----------------------------------------------------------------------
 .../apache/activemq/store/jdbc/LeaseDatabaseLockerTest.java | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/45e7d3a2/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/LeaseDatabaseLockerTest.java
----------------------------------------------------------------------
diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/LeaseDatabaseLockerTest.java
b/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/LeaseDatabaseLockerTest.java
index be08439..b499611 100644
--- a/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/LeaseDatabaseLockerTest.java
+++ b/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/LeaseDatabaseLockerTest.java
@@ -70,11 +70,11 @@ public class LeaseDatabaseLockerTest {
 
         LeaseDatabaseLocker lockerA = new LeaseDatabaseLocker();
         lockerA.setLeaseHolderId("First");
-        lockerA.configure(jdbc);
+        jdbc.setLocker(lockerA);
 
         final LeaseDatabaseLocker lockerB = new LeaseDatabaseLocker();
         lockerB.setLeaseHolderId("Second");
-        lockerB.configure(jdbc);
+        jdbc.setLocker(lockerB);
         final AtomicBoolean blocked = new AtomicBoolean(true);
 
         final Connection connection = dataSource.getConnection();
@@ -141,11 +141,11 @@ public class LeaseDatabaseLockerTest {
 
         final LeaseDatabaseLocker lockerA = new LeaseDatabaseLocker();
         lockerA.setLeaseHolderId("A");
-        lockerA.configure(jdbc);
+        jdbc.setLocker(lockerA);
 
         final LeaseDatabaseLocker lockerB = new LeaseDatabaseLocker();
         lockerB.setLeaseHolderId("B");
-        lockerB.configure(jdbc);
+        jdbc.setLocker(lockerB);
 
         final Set<LeaseDatabaseLocker> lockedSet = new HashSet<LeaseDatabaseLocker>();
         ExecutorService executor = Executors.newCachedThreadPool();
@@ -259,6 +259,7 @@ public class LeaseDatabaseLockerTest {
         }});
 
         underTest.configure(jdbcPersistenceAdapter);
+        underTest.setLockable(jdbcPersistenceAdapter);
         return underTest.determineTimeDifference(connection);
     }
 


Mime
View raw message