mirror of https://github.com/apache/activemq.git
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:
parent
97f03d43dd
commit
8530111cad
|
@ -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() {
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue