mirror of https://github.com/apache/activemq.git
Merge pull request #509 from jbonofre/AMQ-7403
[AMQ-7403] Fix LeaseDatabaseLockerTest unit test (jmock assertion)
This commit is contained in:
commit
f7ab7203ba
|
@ -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…
Reference in New Issue