From 8530111cad5fd108398242831d343328a34b61b4 Mon Sep 17 00:00:00 2001 From: Bosanac Dejan Date: Fri, 7 Sep 2012 11:34:50 +0000 Subject: [PATCH] https://issues.apache.org/jira/browse/AMQ-4005 - remove deprecated API warning from tests git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1381981 13f79535-47bb-0310-9956-ffa450edef68 --- .../broker/ft/DbRestartJDBCQueueMasterSlaveLeaseTest.java | 2 +- .../src/test/java/org/apache/activemq/config/ConfigTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/broker/ft/DbRestartJDBCQueueMasterSlaveLeaseTest.java b/activemq-core/src/test/java/org/apache/activemq/broker/ft/DbRestartJDBCQueueMasterSlaveLeaseTest.java index 312c70cc1d..e13d93a9ed 100644 --- a/activemq-core/src/test/java/org/apache/activemq/broker/ft/DbRestartJDBCQueueMasterSlaveLeaseTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/broker/ft/DbRestartJDBCQueueMasterSlaveLeaseTest.java @@ -36,7 +36,7 @@ public class DbRestartJDBCQueueMasterSlaveLeaseTest extends DbRestartJDBCQueueMa super.configureJdbcPersistenceAdapter(persistenceAdapter); persistenceAdapter.setLockAcquireSleepInterval(getLockAcquireSleepInterval()); persistenceAdapter.setLockKeepAlivePeriod(getLockKeepAlivePeriod()); - persistenceAdapter.setDatabaseLocker(new LeaseDatabaseLocker()); + persistenceAdapter.setLocker(new LeaseDatabaseLocker()); } private long getLockKeepAlivePeriod() { diff --git a/activemq-core/src/test/java/org/apache/activemq/config/ConfigTest.java b/activemq-core/src/test/java/org/apache/activemq/config/ConfigTest.java index e654ec5de1..ae5cb833ca 100755 --- a/activemq-core/src/test/java/org/apache/activemq/config/ConfigTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/config/ConfigTest.java @@ -191,7 +191,7 @@ public class ConfigTest extends TestCase { }}); adapter.start(); - assertTrue("has the locker override", adapter.getDatabaseLocker() instanceof TransactDatabaseLocker); + assertTrue("has the locker override", adapter.getLocker() instanceof TransactDatabaseLocker); adapter.stop(); } @@ -220,7 +220,7 @@ public class ConfigTest extends TestCase { }}); adapter.start(); - assertEquals("has the default locker", adapter.getDatabaseLocker().getClass(), DefaultDatabaseLocker.class); + assertEquals("has the default locker", adapter.getLocker().getClass(), DefaultDatabaseLocker.class); adapter.stop(); }