mirror of https://github.com/apache/activemq.git
[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.broker.BrokerService;
|
||||||
import org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter;
|
import org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter;
|
||||||
import org.apache.activemq.util.Wait;
|
import org.apache.activemq.util.Wait;
|
||||||
import org.apache.derby.jdbc.EmbeddedDataSource;
|
|
||||||
import org.jmock.Expectations;
|
import org.jmock.Expectations;
|
||||||
import org.jmock.Mockery;
|
import org.jmock.Mockery;
|
||||||
import org.jmock.lib.legacy.ClassImposteriser;
|
import org.jmock.lib.legacy.ClassImposteriser;
|
||||||
|
@ -261,6 +260,8 @@ public class LeaseDatabaseLockerTest {
|
||||||
will(returnValue(timestamp));
|
will(returnValue(timestamp));
|
||||||
allowing(timestamp).getTime();
|
allowing(timestamp).getTime();
|
||||||
will(returnValue(dbTime));
|
will(returnValue(dbTime));
|
||||||
|
allowing(resultSet).close();
|
||||||
|
allowing(preparedStatement).close();
|
||||||
}});
|
}});
|
||||||
|
|
||||||
underTest.configure(jdbcPersistenceAdapter);
|
underTest.configure(jdbcPersistenceAdapter);
|
||||||
|
|
Loading…
Reference in New Issue