mirror of
https://github.com/apache/activemq.git
synced 2025-02-16 15:08:10 +00:00
[AMQ-7403] Fix LeaseDatabaseLockerTest unit test (jmock assertion)
This commit is contained in:
parent
8f5d583ad4
commit
3cb8fe87ea
@ -32,7 +32,6 @@ import org.apache.activemq.broker.AbstractLocker;
|
||||
import org.apache.activemq.broker.BrokerService;
|
||||
import org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter;
|
||||
import org.apache.activemq.util.Wait;
|
||||
import org.apache.derby.jdbc.EmbeddedDataSource;
|
||||
import org.jmock.Expectations;
|
||||
import org.jmock.Mockery;
|
||||
import org.jmock.lib.legacy.ClassImposteriser;
|
||||
@ -261,6 +260,8 @@ public class LeaseDatabaseLockerTest {
|
||||
will(returnValue(timestamp));
|
||||
allowing(timestamp).getTime();
|
||||
will(returnValue(dbTime));
|
||||
allowing(resultSet).close();
|
||||
allowing(preparedStatement).close();
|
||||
}});
|
||||
|
||||
underTest.configure(jdbcPersistenceAdapter);
|
||||
|
Loading…
x
Reference in New Issue
Block a user