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
This commit is contained in:
Bosanac Dejan 2012-09-07 11:34:50 +00:00
parent 97f03d43dd
commit 8530111cad
2 changed files with 3 additions and 3 deletions

View File

@ -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() {

View File

@ -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();
}