Merge pull request #509 from jbonofre/AMQ-7403

[AMQ-7403] Fix LeaseDatabaseLockerTest unit test (jmock assertion)
This commit is contained in:
Jean-Baptiste Onofré 2020-03-11 18:32:47 +01:00 committed by GitHub
commit f7ab7203ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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