diff options
author | Robert Godfrey <rgodfrey@apache.org> | 2015-03-03 09:30:49 +0000 |
---|---|---|
committer | Robert Godfrey <rgodfrey@apache.org> | 2015-03-03 09:30:49 +0000 |
commit | 83120216de949c1cae3004c74475cc6c54cd61f1 (patch) | |
tree | bc3e4facca57ff0bea576584a61f44a5422331cb /qpid/java/broker-core/src/test/java/org/apache/qpid/server/binding/BindingImplTest.java | |
parent | 2bb28f477ab2ff92d6fe6c7a5694449638f94661 (diff) | |
download | qpid-python-83120216de949c1cae3004c74475cc6c54cd61f1.tar.gz |
QPID-6428 : [Java Broker] Use StoreConfigurationChangeListener to manage storage of all configured objects
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1663573 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/broker-core/src/test/java/org/apache/qpid/server/binding/BindingImplTest.java')
-rw-r--r-- | qpid/java/broker-core/src/test/java/org/apache/qpid/server/binding/BindingImplTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qpid/java/broker-core/src/test/java/org/apache/qpid/server/binding/BindingImplTest.java b/qpid/java/broker-core/src/test/java/org/apache/qpid/server/binding/BindingImplTest.java index 93fa9114fb..d004f16466 100644 --- a/qpid/java/broker-core/src/test/java/org/apache/qpid/server/binding/BindingImplTest.java +++ b/qpid/java/broker-core/src/test/java/org/apache/qpid/server/binding/BindingImplTest.java @@ -35,6 +35,8 @@ import org.apache.qpid.server.model.Binding; import org.apache.qpid.server.model.BrokerModel; import org.apache.qpid.server.model.Model; import org.apache.qpid.server.queue.AMQQueue; +import org.apache.qpid.server.security.SecurityManager; +import org.apache.qpid.server.virtualhost.VirtualHostImpl; import org.apache.qpid.test.utils.QpidTestCase; public class BindingImplTest extends QpidTestCase @@ -57,7 +59,11 @@ public class BindingImplTest extends QpidTestCase attributes.put(Binding.ARGUMENTS, arguments); attributes.put(Binding.NAME, getTestName()); AMQQueue queue = mock(AMQQueue.class); + VirtualHostImpl vhost = mock(VirtualHostImpl.class); + SecurityManager securityManager = mock(SecurityManager.class); + when(vhost.getSecurityManager()).thenReturn(securityManager); when(queue.getTaskExecutor()).thenReturn(_taskExecutor); + when(queue.getVirtualHost()).thenReturn(vhost); when(queue.getModel()).thenReturn(_model); ExchangeImpl exchange = mock(ExchangeImpl.class); when(exchange.getTaskExecutor()).thenReturn(_taskExecutor); |